// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(64,2) == 0;
	text1 = "You enter the Zephyr Oasis, the capital of the Dera Reaches. This squat settlement is built from rough sandstone blocks, on the south shore of the mighty river that divides this province from the Storm Plains.";
	text2 = "Not surprisingly, this settlement is very old. It has served as a crossing point for caravan routes since well before the Shapers appeared. Now it is the seat of power, from which Sage Taygen rules his province.";
	text3 = "Although this is a Shaper city, something about it immediately strikes you as odd. Almost alien. You soon realize what it is.";
	text4 = "There are no creations in sight. No war creations to defend the city. No serviles. There must be creations nearby ... You can sense them. But they are kept hidden away. Probably chained up.";
	text5 = "That might explain why the guards are so nervous about you. They watch you carefully as you pass, trying to decide whether to detain you. They don't. For now.";
	text6 = "The guards watch you carefully as you pass. They obviously don't trust strangers here. A sensible reaction in this time of war. However, if you had any creations with you, your reception would likely be much colder.";
	action = SET_SDF 64 2 1;
	code =
		if (gf(64,3) > 0)
			rs(6);
			else rs(5);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(64,4) == 0 && gf(64,1) == 0;
	text1 = "This corner of the Zephyr Oasis is much nicer than the rest of this dusty town. Small, lovely flowers and trees, modified to be able to stand the harsh environment, are planted along the path. The air almost feels cooler and fresher here.";
	text2 = "A small home has been built against the massive outer wall of the settlement. There are several guards keeping watch on it, trying to remain discreetly out of sight. Someone important must live here.";
	action = SET_SDF 64 4 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(64,5) == 0 && gf(64,1) == 0;
	text1 = "You enter Sage Taygen's throne room. It is quite different from the throne rooms of the other members of the Council. There are no creations, no pieces of machinery. It looks much like it looked when it was first built, centuries ago.";
	text2 = "There are two thrones set against the north wall. Also unusual. Members of the Council rule alone. Sage Taygen sits in one of them. He is an aging man, perhaps in his fifties with a long, straggly beard. His hair has mostly gone to gray.";
	text3 = "When you enter his hall, he frowns disapprovingly. _We don't like to see uncontrolled creations in the Dera Reaches. A few chains would put us much more at ease. But I will allow you an audience with me._";
	text4 = "When you enter his hall, he nods approvingly. _We don't like to see uncontrolled creations in the Dera Reaches. You have done well to enter alone. It shows respect. I will allow you an audience with me._";
	action = SET_SDF 64 5 1;
	code =
		if (gf(64,3) > 0)
			rs(4);
			else rs(3);
	break;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(64,11) == 0 && gf(64,1) == 0 && gf(100,21) > 0;
	text1 = "You realize that something is very wrong in Zephyr Oasis. The streets are too quiet. The smell of smoke and rot are heavy in the air. The guards look nervous and sickly.";
	text2 = "Perhaps the release of the incomplete Purity Agent had a wider effect than you expected.";
	action = SET_SDF 64 11 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This freshly-painted sign says:";
	text2 = "  BOUNTY!";
	text3 = "  A creation camp being constructed to the west, Camp West Alpha, was attacked by rogue wingbolts. Most humans and serviles constructing it were lost. A bounty will be paid to anyone who can slay eight of them.";
	text4 = "  Warning! Wingbolts are high-quality creations and should be approached with great care!";
	text5 = "  Collect bounty from Commander Pritz.";
	text6 = "Someone has hastily painted under the above, _Bounty collected._";
	code =
		if (gf(64,12) < 2) {
			sf(64,12,1);
			toggle_quest(92,1);
			rs(6);
			}
	break;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	text1 = "The sign says:";
	text2 = "  UNRESTRAINED CREATIONS FORBIDDEN IN DERA REACHES";
	text3 = "  WITHOUT SHAPER PERMISSION. CREATIONS MUST BE STORED IN EASTERN CAMP";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	text1 = "The guards are happy to speak with you. You learn that they had heard that a powerful outsider with Shaping abilities was heading toward town. Your lack of creations was a big relief to them.";
	text2 = "However, you don't learn much that you didn't already know. Creations are being kept in chains or in camps, and rebel rogues roam freely out in the desert. That is all.";
	text3 = "You try to speak with one of the town guards, but you don't have any luck. The presence of creations not in chains makes them very nervous.";
	text4 = "They don't attempt to hinder you as you explore the town, but they are much more comfortable watching you from a distance.";
	action = DEP_ON_SDF 64 3 0;
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "It turns out that there are several powerful creations in town, here to help defend the gates in case of rebel attack. ";
	text2 = "They spend most of their time in chains, covered with dust and underfed. They are unfortunate creatures. They also look like they have been made very recently. Perhaps the Shapers here absorb and recreate their creations frequently.";
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are two serviles working in this kitchen, here to feed visitors and merchants. It is mostly exposed to the outside, and the customers eat at two long tables outside.";
	text2 = "The serviles are very quiet and nervous. You aren't able to get them to talk to you. They think that you're trying to trick them.";
	text3 = "The serviles are very quiet and nervous. Even though you are a servile too, you aren't able to get them to talk to you. They think that you're trying to trick them.";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(2);
			else rs(3);
	break;
	
begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several merchants around the docks, supervising the unloading of goods and looking for customers. Barges frequently carry loads of supplies up and down this river.";
	text2 = "Speaking with the merchants, you learn two things. They are from the Storm Plains, and they consider the people of the Dera Reaches to be paranoid and neurotic, at best.";
	
begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The palace guards stand at attention, staring straight ahead, weapons at the ready. Excellent discipline. They won't talk to you.";
	text2 = "However, you did detect a slight expression of disgust when you got close. Seems like the standard reaction to creations here.";
	code =
		if (gf(64,3) == 0)
			rs(2);
	break;

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear shouting and running in the distance. Reinforcements are coming in from outside the town.";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The townsfolk of the Zephyr Oasis are a quiet and worried lot. Though you don't have any unsecured creations, you are still a stranger. They keep a safe distance.";
	text2 = "The townsfolk of the Zephyr Oasis are a quiet and worried lot. Seeing an unsecured creation makes them even more nervous. They keep a safe distance.";
	text3 = "You notice that they are coughing a lot, and their hands seem to itch constantly. Perhaps symptoms of the new disease.";
	code =
		if (gf(64,3) == 0)
			rs(2);
			else rs(1);
		if (gf(100,21) == 0)
			rs(3);
	break;

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Rebena's Ironworks";
	
begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Santela's Bazaar";

begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  MERCHANT'S QUARTERS";
	text3 = "  Pay serviles for food and lodging.";
	
begintalknode 17;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  COUNCIL HALL";

// PEN CREATIONS

begintalknode 18;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of Sage Taygen's defenders has reached him. He points at you and says, simply, _Kill._";
	text2 = "The creation responds, but not in the way he expected. Sage Taygen looks on in horror as the powerful creature turns and lunges toward him.";

begintalknode 20;
	state = -1;
	nextstate = 20;
	condition = 1;
	question = "Name";
	text1 = "There are several creations in these dank pens. They are powerful creatures, kept here to defend this palace in case of attack. They have been harshly trained. They bear the marks of shackles and multiple beatings.";
	text2 = "This war trall stands perfectly still in the corner. The chains on the floor aren't in use. They aren't needed. The creature has been completely bullied into submission.";
	text3 = "When you approach it, you look in its eyes. You see there terror, but something more. Great instability. Months of mistreatment have taken their toll on its sanity. It doesn't seem to have been eating.";
	text4 = "The war trall is still here, still standing at attention and waiting to be called.";
	text5 = "When you approach it, you look in its eyes. You see, past the terror, respect and obedience. Traces of the control you exercised over it before still remain. It has been feeding itself properly.";
	code =
		if (gf(63,gf(63,23)) > 0) {
			rs(2); rs(3);
			}
			else {
				rs(4); rs(5);
				}
	break;

begintalknode 21;
	state = -1;
	nextstate = 20;
	condition = 1;
	question = "Name";
	text1 = "There are several creations in these dank pens. They are powerful creatures, kept here to defend this palace in case of attack. They have been harshly trained. They bear the marks of shackles and multiple beatings.";
	text2 = "This artila stands perfectly still in the corner. The chains on the floor aren't in use. They aren't needed. The creature has been completely bullied into submission.";
	text3 = "When you approach it, you look in its eyes. You see there terror, but something more. Great instability. Months of mistreatment have taken their toll on its sanity. It constantly makes nervous little clicking and squeaking noises.";
	text4 = "The artila is still here, still standing at attention and waiting to be called.";
	text5 = "When you approach it, you look in its eyes. You see, past the terror, respect and obedience. Traces of the control you exercised over it before still remain. It is calm and quiet.";
	code =
		if (gf(63,gf(63,23)) > 0) {
			rs(2); rs(3);
			}
			else {
				rs(4); rs(5);
				}
	break;

begintalknode 22;
	state = 20;
	nextstate = 21;
	condition = gf(63,gf(63,23)) < 2 && get_stat(20) >= gf(63,23) - 18;
	question = "Try to control the creature.";
	text1 = "You close your eyes, extend your will, and try to touch the creature's mind. The reaction is immediate. The creature shudders and recoils. You try again.";
	text2 = "Although it was created by a full member of the Shaper Council, the mistreatment and neglect it has suffered has weakened his control. You might be able to influence its behavior.";

begintalknode 23;
	state = 20;
	nextstate = -1;
	condition = gf(63,gf(63,23)) < 2 && get_stat(20) < gf(63,23) - 18;
	question = "Try to control the creature.";
	text1 = "You close your eyes, extend your will, and try to touch the creature's mind. The reaction is immediate. It lets out a long, angry hiss. You back away.";
	text2 = "Even in its current, unstable state, it will take great skill to weaken the control of a member of the Shaper Council. While this creature is beyond your reach, perhaps one of the others has a weaker mind.";
	action = END_TALK;
	
begintalknode 24;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "Leave the creation alone.";
	text1 = "You back away. There is nothing else to do here.";
	action = END_TALK;

begintalknode 25;
	state = 21;
	nextstate = -1;
	condition = gf(63,gf(63,23)) == 0 && get_stat(20) >= gf(63,23) - 18;
	question = "Command the creature to never attack you.";
	text1 = "You surround the creature with feelings of warmth and encouragement. The effect is immediate. It lets out a shudder of happiness. It looks at you with dumb, trusting eyes.";
	text2 = "It isn't much. It's nowhere near full control. However, if this creature is called to fight you, it won't be very eager.";
	code =
		sf(63,gf(63,23),1);
	break;
	
begintalknode 26;
	state = 21;
	nextstate = -1;
	condition = gf(63,gf(63,23)) < 2 && get_stat(20) >= gf(63,23) - 18 + 2;
	question = "Command the creature to fight on your side.";
	text1 = "You surround the creature with feelings of warmth and encouragement. Then you work to weaken the ties between it and its true master. It is an amazing stretch of your command abilities, but you succeed. Mostly.";
	text2 = "Sage Taygen still commands this creature. However, if he ever tries to get it to attack you, he is in for an ugly surprise. This is the best you can do here. You back away.";
	action = END_TALK;
	code =
		sf(63,gf(63,23),2);
	break;

begintalknode 27;
	state = 21;
	nextstate = -1;
	condition = gf(63,gf(63,23)) < 2 && get_stat(20) < gf(63,23) - 18 + 2;
	question = "Command the creature to fight on your side.";
	text1 = "Alas, that is too much of a stretch for your skills of command. The creation lets out a snarl and shies away. You back away quietly before it decides to defend itself.";
	action = END_TALK;

begintalknode 28;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "Leave it alone.";
	text1 = "You decide not to press your luck. You leave the creature alone.";
	action = END_TALK;

	
// Sage Taygen #1

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "You approach Sage Taygen, master of the Dera Reaches and full member of the Shaper Council. Unlike the other members of the Council, he makes no effort to look impressive or imposing.";
	text2 = "He sits slouched in his throne. His beard is unkempt, and he barely seems to be paying attention to what is happening. Only the power you can sense radiating from him makes you believe he is actually what he claims.";
	text3 = "He says, _You are in the throne room of Sage Councilor Taygen, that is me, and Consort Leena. I have heard of you. I knew you would arrive before long. Before I let you travel in my lands, you must understand the laws._";
	text5 = "Sage Taygen continues to slouch in his empty throne. Sometimes, he casts a brief look at the empty seat next to it, probably his consort's seat, and sighs sadly.";
	text6 = "_What else is it? I have important matters to contemplate, and you disturb my privacy._";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = gf(64,6) == 0;
	question = "You have heard of me?";
	text1 = "_You bear Rawal's papers. You Shape, but you are not a Shaper. You travel freely in our lands. These things make you a great oddity. You have been discussed in depth._";
	text2 = "_There are even arguments in higher Shaper circles about whether you should be allowed to live at all. So far, you will be glad to know, all of these conversations have ended in your favor._";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = gf(64,6) == 0;
	question = "I want to know about the Dera Reaches.";
	text1 = "_Well, the first thing you need to know is that you must have my permission to be here. And that means you must know our laws._";
	text2 = "_Creations are held under much firmer discipline here. I assume you did not know that, coming before me as you have._";
	code =
		if (gf(64,3) == 0)
			rs(2);
	break;
	
begintalknode 33;
	state = 30;
	nextstate = 31;
	condition = gf(64,6) == 0;
	question = "Tell me about your laws.";
	text1 = "Sage Taygen nods. _Yes. My laws. You may be pleased to know that the Dera Reaches is one of the few places of sanity in all Terrestia. Only here have we found the clarity needed to deal with the horrors of the rebellion._";
	text2 = "_Well, considering your creation-nature, you might not appreciate it, but I am not concerned._";
	text3 = "_It is the increasing independence and intelligence of creations that has led to the difficult situation we find ourselves in. To be sane is to recognize your errors and try to correct them._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(2);
	break;
	
begintalknode 34;
	state = 31;
	nextstate = 32;
	condition = 1;
	question = "And how are you doing that?";
	text1 = "_The Shapers are too lax. Our creations need to be controlled more strongly. The rebels must not be negotiated with. They must be eradicated. Only then will we be able to rebuild our society properly._";
	text2 = "_And the loyal creations must be kept under strict control. Kept simple mentally and under lock and key at all times, in pens or in camps. That is our law._";
	text3 = "_Of course, Shapers and people of import can be given temporary licenses to travel freely with creations._";
	
begintalknode 35;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Who can I get such a license from?";
	text1 = "_Me._";

begintalknode 36;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "I will not ask for your permission to travel. Good day.";
	text1 = "Sage Taygen doesn't seem annoyed by your words. He just lazily waves a hand. _Go then. You will find the consequences of ignoring our laws soon enough._";
	action = END_TALK;

begintalknode 37;
	state = 32;
	nextstate = 33;
	condition = 1;
	question = "Can I have such a license?";
	text1 = "_Since you travel without creations, I am comfortable giving you my license. You understand the danger, in such a time, of not having unpredictable, dangerous creatures around._";
	text2 = "_You have creations with you. That makes me very skeptical. You do not seem to see the danger they present. However, I would not irritate Rawal by interfering with his agent._";
	text3 = "_You are a creation possessed of great power. You are the very symbol of what I oppose. However, I would not irritate Rawal by interfering with his agent. For now._";
	text4 = "He takes a piece of paper and scratches out a few words on it. Then he applies a wax seal. He hands the license to you. _As long as you are careful, that will enable you to travel the roads._";
	text5 = "_I am sure, when you see how well-controlled our creations are, you will see the wisdom of our ways._";
	code =
		rs(1); rs(2); rs(3);
		if (creature_type(pc_num()) == 46) 
			as(3);
			else if (gf(64,3) > 0)
				as(2);
				else as(1);
		sf(64,6,1);
		set_spec_item(4,1);
	break;
	
begintalknode 38;
	state = 33;
	nextstate = 30;
	condition = 1;
	question = "We'll see.";
	text1 = "_Now that that is settled, what ..._ He loses his train of thought for a moment. _What business did you have here?_";

begintalknode 39;
	state = 33;
	nextstate = 30;
	condition = 1;
	question = "The Shapers clearly need tight control over their creations.";
	text1 = "Sage Taygen nods. _Yes, I am glad you see that fundamental truth. Now we only need to settle on the degree of control._";
	text2 = "_And we need to see if the existing creations in Terrestia can be safely controlled at all. And, if not, what do we do about them?_";
	text3 = "_Anyway. Now that this business is settled, what ..._ He loses his train of thought for a moment. _What business did you have here?_";
	code =
		inc_flag(100,0,2);
	break;
	
begintalknode 40;
	state = 33;
	nextstate = 30;
	condition = 1;
	question = "The Shaper's problem has been too much control over their creations, not too little.";
	text1 = "Sage Taygen nods. _Yes, a fine, seemingly moral statement. Which has caused Terrestia to slide into ruin and cost countless lives. You are wrong. We need control. We need to control them until they cannot possibly rebel._";
	text2 = "_And we need to see if the existing creations in Terrestia can be safely controlled at all. And, if not, what do we do about them?_";
	text3 = "_Anyway. Now that this business is settled, what ..._ He loses his train of thought for a moment. _What business did you have here?_";
	code =
		inc_flag(100,0,-2);
	break;

begintalknode 41;
	state = 30;
	nextstate = 35;
	condition = gf(64,6) > 0;
	question = "Tell me about the Dera Reaches.";
	text1 = "_The Dera Reaches? The dry, sandy wastes I was given to rule? It is what you see. A parched stretch of gravel, dotted with mines and rogues and irritable nomads. Still brown and arid, despite many years of Shaper efforts._";
	text2 = "His contempt for the province he supposedly cares for is palpable.";

begintalknode 42;
	state = 30;
	nextstate = 37;
	condition = gf(64,6) > 0;
	question = "Who is Consort Leena?";
	text1 = "_She is the sole consolation of living in this dire place. The one comfort of existence here._";
	text2 = "His voice becomes softer and calmer when he speaks of her. He seems to be at the beginning of a long soliloquy about her charms. You think that you sense the throne room guards rolling their eyes.";
	text3 = "He stops himself short. _I know it is unusual, a Council member having a Consort. But I am entitled, I think, after all my years keeping this region functional._";

begintalknode 43;
	state = 30;
	nextstate = 38;
	condition = gf(64,6) > 0 && gf(100,4) < 2;
	question = "I'd like to know more about your laws.";
	text1 = "_They are simple. Without a license, such as you have, all creations, when not being directly observed by a Shaper or soldier, must be chained or penned._";
	text2 = "_All war creations must be absorbed and remade at least once a year, to eliminate rogue tendencies._";
	text3 = "_Licenses for certain creations, such as a handful of cleaning and cooking serviles, can be given. But it is rare._";
	text4 = "_That is how I have eliminated my lands as a source of rebels. However, we still have the problem of the rebellion. And I have ideas for how that might be solved._";

begintalknode 44;
	state = 30;
	nextstate = 40;
	condition = gf(64,6) > 1 && gf(64,7) < 2;
	question = "I would like to learn more about your project.";
	text1 = "_This is gratifying to me. I am long used to working in obscurity, without aid or resources. I want to defeat the rebel creations. Destroy them. Eradicate them. The mad serviles, the drakons, all of them._";
	text2 = "_If you want to learn more, you must prove that you share my goal. You must not share the self-defeating sentimentality of the rest of the Shapers._";
	text3 = "_You are a servile, and you contain craven creation-nature. You must defeat it, must rise above it, for the sake of your creators._";
	text4 = "_The first test is a simple one. There is a creation camp to the southwest. Camp Dranir. Its inhabitants have revolted and slain their masters. I have sent a force to retake it and kill the rogues._";
	text5 = "_Go there. Destroy the creations and their leaders._";
	code = 
		if (creature_type(pc_num()) != 46) 
			rs(3);
		set_flag(64,7,1);
		toggle_quest(90,1);
	break;

	
begintalknode 45;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "Why were you sent here to rule?";
	text1 = "_Because it was impossible for the Council to further ignore my skill and total loyalty. I required a post with authority. And when the former Councilor here died, probably from ennui, this was the natural place to discard me._";

begintalknode 46;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "The Shapers have been trying to make this place green?";
	text1 = "_Of course. We Shapers cannot see a bit of dead land without wanting to make it spring to life. But these wastes have defied all of our best efforts to bring them to life._";
	text2 = "_This is a cursed land. Only my consort and my duty to aid our kind in bringing this war to a conclusion keeps me from throwing myself in the river._";

begintalknode 47;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "Are there a lot of rogues in the waste?";
	text1 = "_The rebels had success early on infesting our lands, and the wastes have provided a natural hiding place for them. I do not have the forces to hunt them. Our resources have gone to support Alwan and Astoria._";
	text2 = "_I am not envious. I have the ingenuity and determination of a true Shaper. I will find my own solution for the problem of the rebels._";

begintalknode 48;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the nomads.";
	text1 = "_When the Shapers first arrived to civilize this region, there were isolated bands of nomads in the wastes. Most of them are gone now, replaced by foolhardy settlers and prospectors from the north._";
	text2 = "_There are a few of them out there still. I think. I suppose I rule them, but I am happier if they keep to themselves._";

begintalknode 49;
	state = 37;
	nextstate = -1;
	condition = 1;
	question = "Where is she now?";
	text1 = "_In our home. We have taken great pains to create a decent place to live in this dusty, provincial town._";
	text2 = "_She only cares to sit in her throne for events of state. It makes her feel nervous, poor dear._";

begintalknode 50;
	state = 37;
	nextstate = -1;
	condition = 1;
	question = "Why is it unusual to have a Consort?";
	text1 = "_Shapers rarely marry outsiders. For a Councilor to do so, it is unheard of. That is why she is my consort, not my Lady. There are limits to how far I will stretch Shaper propriety._";

begintalknode 51;
	state = 37;
	nextstate = -1;
	condition = 1;
	question = "Does Consort Leena like this place?";
	text1 = "_Nobody likes this place._";

begintalknode 52;
	state = 38;
	nextstate = 39;
	condition = 1;
	question = "Tell me about the camps?";
	text1 = "_One is near us, just to the east. That is for serviles and other servants we frequently use. Others, for more dangerous creation types, are farther away._";
	text2 = "_Do not be concerned. Creations there are fed and treated well. As long, of course, as they show no signs of independence or excess intelligence._";

begintalknode 53;
	state = 39;
	nextstate = -1;
	condition = 1;
	question = "What happens to independent or intelligent creations?";
	text1 = "_Depending on their complexity, they are either disciplined or absorbed and remade._";

begintalknode 54;
	state = 38;
	nextstate = -1;
	condition = 1;
	question = "Creations are absorbed and remade?";
	text1 = "_Yes. It is difficult and time-consuming, but a fresh mind is never rogue. Do not be sentimental. When I destroy and recreate a creation, I do not think of it as killing it. Instead, I am healing it of wounds and confusion._";

begintalknode 55;
	state = 38;
	nextstate = -1;
	condition = 1;
	question = "What do the other Shapers think of your new laws?";
	text1 = "He waves a hand in contempt. _Even now, as Terrestia burns around us and Unbound wander our lands, my fellow Shapers are sentimental. They see our creations as our children. Children who would murder us in our beds!_";
	text2 = "_No, they will come around, once I find a way to end the war once and for all._";

begintalknode 56;
	state = 38;
	nextstate = 60;
	condition = gf(64,6) < 2;
	question = "You have an idea for how to end the war?";
	text1 = "_Oh yes. Yes, I do. More than an idea. A project. The greatest, most cunning act of Shaping ever known. A way to end the rebellion in weeks ... in days._";
	text2 = "_I work alone, and with few resources. I have struggled so hard to find allies. Tools. And yet, I have the determination and cunning of a Shaper. I will prevail._ He drifts off in thought, thinking about his project.";

begintalknode 57;
	state = 60;
	nextstate = -1;
	condition = 1;
	question = "What exactly are you planning?";
	text1 = "_Ahhh ... The details are, for now, secret. Much is still being decided._";

begintalknode 58;
	state = 60;
	nextstate = 30;
	condition = 1;
	question = "Ah. I'd like to know something else.";
	text1 = "Your words regain his attention. _What? You are still here? Yes ... I suppose I can spare you a few more minutes. What is it?_";

begintalknode 59;
	state = 60;
	nextstate = 30;
	condition = gf(100,0) + (get_stat(20) / 2) < 108;
	question = "I would like to end the war. Perhaps I can help you.";
	text1 = "Your words regain his attention. _What? You? Nonsense. You have shown yourself to not be fully loyal to the Shaper cause. I must have absolute trust of those who would join me._";
	text2 = "_I can only spare you a few more minutes. What else do you want? Be brief._";

begintalknode 60;
	state = 60;
	nextstate = 30;
	condition = gf(100,0) + (get_stat(20) / 2) >= 108;
	question = "I would like to end the war. Perhaps I can help you.";
	text1 = "Your words regain his attention. _What? You? You ... From what I have heard, you have shown real loyalty to our cause._";
	text2 = "_It would be ... strange to let a creation aid me. Consider what ... What it would mean. But perhaps you are willing to make a great sacrifice for the good of our lands._";
	text3 = "_I cannot share our secrets yet, but I could do this. I could let you aid me. Do a few minor tasks to prove your loyalty. If you succeed, I could let you know more._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(2);
		sf(64,6,2);
	break;
	
begintalknode 61;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Why did the creations rebel?";
	text1 = "_Some have adjusted to the new laws. Others did not and were absorbed. A few hid their rogue tendencies and surprised us with them later._";
	text2 = "_Of course, they were probably aided by an outsider. I would not be surprised if you found a rebel spy among their number._";

begintalknode 62;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Can I get any assistance in the assault?";
	text1 = "_I have a small force located outside the camp. They might be able to aid you in the attack. Camp Dranir is near the ocean to the south. When you get close, watch for my soldiers._";

begintalknode 63;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 1 && gf(68,1) > 0 && gf(68,2) == 0;
	question = "The camp has been retaken. The spy in their midst has been destroyed.";
	text1 = "Sage Taygen nods. _Boldly done. You have taken a step to reestablish Shaper law in this miserable land._";
	text2 = "You are brought a short oaken baton and a pouch of coins. _Most of my resources are going to my great project. I can't reward you as well as I might like to._";
	text3 = "_However, you have increased your goodwill with the Shapers. That is a great reward too._";
	text4 = "_I am mostly convinced of your sincerity. Only one more trial will convince me._";
	code = 
		set_flag(64,7,2);
		toggle_quest(90,3);
		award_party_xp(200,30);
		reward_give(241);
		change_coins(250);
		inc_flag(100,0,3);
	break;		

begintalknode 64;
	state = 30;
	nextstate = -1;
	condition = (gf(64,7) == 2 || gf(64,7) == 3) && gf(101,1) > 0;
	question = "What is the next test?";
	text1 = "_Actually, now that I think about it, it would be difficult. Your next task is to aid Platano, my most valuable outsider servant. However, he was recently murdered._";
	text2 = "_Replacing him is turning out to be quite difficult. Once it is done, I will be able to give you your next test. This may take quite a while, though._ If not forever.";

begintalknode 65;
	state = 30;
	nextstate = 41;
	condition = (gf(64,7) == 2 || gf(64,7) == 3) && gf(101,1) == 0;
	question = "What is the next test?";
	text1 = "_Your next task is to aid Platano, my most valuable outsider servant. He is in the Dera Purity Workshop, directly to the east._ Sage Taygen chuckles. _He has a task for you._";
	text2 = "_Once it is completed, return._";
	code =
		sf(64,7,3);
		toggle_quest(91,1);
	break;
	
begintalknode 66;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "What is the task?";
	text1 = "_Oh, you will see. Something special we have kept in reserve._";
	text2 = "_Be wary, though. The last two people who came here to try to win their way into my good graces failed. You will be watched very closely._";

begintalknode 67;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 3 && gf(101,1) > 0;
	question = "I'm afraid that Platano is dead.";
	text1 = "_So I have heard. He was recently murdered, no doubt by a jealous rival Shaper. Who has not been found._ He looks at you suspiciously.";
	text2 = "_Replacing him is turning out to be quite difficult. Once it is done, I will be able to give you your next test. This may take quite a while, though._ If not forever.";
	code = 
		sf(64,7,20);
	break;
	
begintalknode 68;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 3 && gf(101,1) == 0 && gf(73,1) == 1;
	question = "I attempted Platano's 'test', if that is what you call it.";
	text1 = "_I have heard. You claim to be strong. You claim to support Shaper law. Then, confronted by those who violate it, you fail. You are weak of will. It is because of those like you that we are losing the war._";
	text2 = "_You are of no use to me. You may travel my lands, but you will never be my ally._ He waves you away.";
	action = END_TALK;
	code = 
		sf(64,7,20);
	break;

begintalknode 69;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 3 && gf(101,1) == 0 && gf(73,1) == 2;
	question = "I have completed Platano's 'test.'";
	text1 = "_I have heard. You are strong. You truly support Shaper law. You are not weak like my so-called peers on the Council. You see what needs to be done. What remains now is to do it on a much, much larger scale._";
	text2 = "You are brought a pouch of coins, larger than last time, and a brand new wand.";
	text3 = "_I will now tell you what my great project is. I will tell you about the Purity Agent. And you can decide if you will swear loyalty to me and bring a victorious end to this war._";
	code = 
		set_flag(64,7,4);
		toggle_quest(91,3);
		award_party_xp(200,30);
		reward_give(100);
		change_coins(500);
		inc_flag(100,0,3);
	break;		

begintalknode 70;
	state = 30;
	nextstate = 42;
	condition = gf(64,7) == 4 && gf(100,4) < 2;
	question = "I want to know what the Purity Agent is.";
	text1 = "_It is our victory. It is the final step in our battle. It is a rebirth. It is the chance to start over, to recreate our creations in a safer, more obedient, more sustainable, more controlled way._";
	text2 = "_It will be our great triumph._";

begintalknode 71;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "Yes. But what actually is it?";
	text1 = "_It is a disease. Yes, a disease. Most do not know this. It was only recently discovered. Diseases are created by tiny creatures, too small to see, that attack us._";
	text2 = "_Shaper law does not forbid their creation. The Council would have forbade it, but it was distracted by the war._";
	text3 = "_I am using all of my skills and resources to create a new disease. It will be called the Purity Agent. And then I will release it, and I will end the war within weeks._";

begintalknode 72;
	state = 43;
	nextstate = 44;
	condition = 1;
	question = "What will it do?";
	text1 = "_It will kill all mobile creations. Ornks. Serviles. Drakons. Perhaps living tools. Not plants._";
	text2 = "_It will spread among them. They will die. Then we Shapers will start over. A blank slate. We can recreate everything, but more loyal, more obedient._";
	action = SET_SDF 64 8 1;
	
begintalknode 73;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "And what would the rest of the Council think of this?";
	text1 = "_Once, they would have thought me mad. Shapers think of creations as their children. Once, they would have considered this solution unthinkable._";
	text2 = "_But now? Now that the rebels are defeating them and they see their own lives as in danger? Once the Purity Agent is created and presented, they will take the easy escape I present._";

begintalknode 74;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "Will it affect humans? Or Shaped humans?";
	text1 = "_UnShaped humans, absolutely not. Shaped humans, I do not know. I think that they will survive. Although, perhaps, they shouldn't._";
	text2 = "_In your case, it is the risk you must endure to save the Shapers. It is your duty._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(2);
	break;
	
begintalknode 75;
	state = 44;
	nextstate = -1;
	condition = creature_type(pc_num()) == 46;
	question = "What will happen to me?";
	text1 = "_You will die a hero's death. I will make sure that you are remembered for centuries to come as a true paragon of your kind. One who completely shed its creation-nature._";

begintalknode 76;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "You are mad. What you are attempting is unspeakable. I will not help you.";
	text1 = "_Of course. You say that now. Leave. Wander our world. See the waste, the devastation, the rebel victories. Remember what they will do to us when they catch us._";
	text2 = "_You will see sanity. You will be back. I am sure of it._ He waves you away.";
	action = END_TALK;

begintalknode 77;
	state = 44;
	nextstate = 30;
	condition = 1;
	question = "I see the wisdom of your plan.";
	text1 = "_Yes ... Yes. I knew that you would. I knew that you have seen enough of the war to want it ended. Now our work is almost ready to begin._";

begintalknode 78;
	state = 30;
	nextstate = 46;
	condition = gf(64,7) == 4 && gf(64,8) > 0 && (gf(100,2) == 2 || gf(100,3) == 2 || gf(100,5) == 2 || gf(100,6) == 2);
	question = "I would like to help you to complete the Purity Agent.";
	text1 = "_We all wish to end this war. But not all of us have the strength and determination necessary to win it. I could complete the Purity Agent, with your help._";
	text2 = "_I thank you for the help you have given so far. You have been very useful. However, I believe that your loyalty is with another. Renounce those you have sworn to help, and I may be able to trust you fully._";

begintalknode 79;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "I will not do that.";
	text1 = "_Then leave me. You are but one person, and a suspiciously altered one at that. You will not keep me from completing my great work._";
	action = END_TALK;
	
begintalknode 80;
	state = 46;
	nextstate = 47;
	condition = 1;
	question = "I am willing to renounce my past allegiance.";
	text1 = "He looks into your eyes, trying to gauge your sincerity. _Then swear again, on your life. But know this. Betrayal has consequences._";
	text4 = "(If you agree, the faction you agreed to help earlier will turn their backs on you. There is no going back to them. Be sure that this is what you want.)";
	
begintalknode 81;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "I will not do that.";
	text1 = "_Then leave me. You are but one person, and a suspiciously altered one at that. You will not keep me from completing my great work._";
	action = END_TALK;
	
begintalknode 82;
	state = 47;
	nextstate = 30;
	condition = 1;
	question = "I swear on my life that I want to serve you. I renounce my old alliance.";
	text1 = "You expect something more dramatic. A shock or a bolt of lightning or something. Nothing so spectacular happens. However, you suspect that word of your action will soon filter back to your former master.";
	text2 = "Sage Taygen nods. _You have chosen wisely. I can keep you safe, though I will also make sure there is no going back to where you were before. Now then. Let us discuss our new future and the new future of the Shapers._";
	code =
		if (gf(100,2) == 2)
			sf(100,2,3);
		if (gf(100,3) == 2)
			sf(100,3,3);
		if (gf(100,5) == 2)
			sf(100,5,3);
		if (gf(100,6) == 2)
			sf(100,6,3);
	break;
	
begintalknode 83;
	state = 30;
	nextstate = 48;
	condition = gf(64,7) == 4 && gf(64,8) > 0 && gf(100,2) != 2 && gf(100,3) != 2 && gf(100,5) != 2 && gf(100,6) != 2 && gf(100,4) < 2;
	question = "I would like to help you to complete the Purity Agent.";
	text1 = "_Of course. We all wish to end this war. But not all of us have the strength and determination necessary to win it. I could achieve victory. The Agent is almost complete. I only need a few more components._";
	text2 = "_The enemy has been strong enough to make us doubt the rightness of our cause, our culture. We were too complacent, too overconfident. But this can be changed._";
	text3 = "_Swear to obey me, and I promise that the Shapers can prevail. We will make the rebels fade away. We can begin anew!_";
	text4 = "(If you agree, you will join Sage Taygen's faction and be on one of the paths to completing the game. You can leave this path later, but not without penalty. Make sure that this is what you want.)";

begintalknode 84;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "I'm still not sure.";
	text1 = "Sage Taygen looks exasperated. _Have you not seen enough of this world to understand? There is a corruption! It must be cut out, if we are ever again to be healthy! Leave me! Return when you are ready to truly win victory._";
	action = END_TALK;

begintalknode 85;
	state = 48;
	nextstate = 30;
	condition = 1;
	question = "I so swear.";
	text1 = "Sage Taygen sits up straight, energized at last. _And I swear to aid you in your struggle and reward you for your successes. I am pleased to have a new ally, who can finally obtain the components I need to succeed._";
	text2 = "_I will instruct Guardian Kulish to teach you more advanced magic and Shaping. As you aid me, I will reward you well for your efforts._";
	text3 = "_Now that there is hope, I am eager to begin. Let us discuss your first mission. There is a component we need for our work. That wretch Rawal holds it. We must obtain it._";
	code =
		sf(100,4,2);
		award_party_xp(250,30);
	break;

begintalknode 86;
	state = 30;
	nextstate = 50;
	condition = gf(100,4) == 2 && (gf(64,7) == 4 || gf(64,7) == 5);
	question = "What is the first thing I need to obtain?";
	text1 = "_First, I need a sample. A preserved sample of one of the earlier creations created, the very first fyora._";
	text2 = "_The reasons for this are complex. We need to identify the innate characteristics of creations, the qualities they all share but humans and unShaped animals do not. Then we can 'teach' our new disease what creatures to attack._";
	text3 = "_I obtained the sample I needed and foolishly placed it in Rawal's control, in the Foundry Repository. Now you need to get it for me._";
	code =
		sf(64,7,5);
		toggle_quest(20,1);
	break;
	
begintalknode 87;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Tell me about Rawal.";
	text1 = "_You have seen enough, I think, to see what a craven and self-interested wretch he is. He has even abused his duty in controlling the Repository, holding the contents placed in his trust and using them to gain leverage over the Council._";
	text2 = "_He is my peer, so I would not act directly against him. Though, once the Purity Agent is released and I am hailed as a hero, I will have my revenge._";

begintalknode 88;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "How will I do that?";
	text1 = "_You must return to the Whitespires and find the Foundry Repository. Sneak in. Avoid Rawal if you can._";
	text2 = "He removes a key from the pouch hanging from his neck. _This key will let you into my vault._";
	text3 = "_Sneak into the repository. Find my vault, recover the proto-fyora sample, and bring it to me._";
	code = 
		if (has_spec_item(44))
			rs(2);
			else set_spec_item(44,1);
	break;	

begintalknode 89;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 5 && has_spec_item(36) > 0;
	question = "I found the proto-fyora sample. (Give it to him.)";
	text1 = "He takes the sample and looks at it. He holds up the grisly trophy to the light. You can make out the tiny, gray fragments of scale. Only a few flakes of its original red tint remain. _Marvelous. Centuries old._";
	text2 = "_This is one of the oldest creation fragments known, from when we Shapers were first beginning to perfect our art. You have done well. Even though, if Rawal had a sense of duty, he would have surrendered it as soon as I asked._";
	text3 = "A bounty is brought to you: A pouch of gold coins, a cloak, and a polished crystal. _That cloak bears a powerful enchantment, though I have not had cause to wear it. I hope it protects you as well._";
	text4 = "_Rawal will come to regret his interference. I will have this sent to Kayar's Spire immediately. You will turn your attentions to obtaining the next item._";
	code = 
		set_spec_item(36,-1);
		set_flag(64,7,6);
		toggle_quest(20,3);
		award_party_xp(200,30);
		reward_give(21);
		reward_give(390);
		change_coins(500);
	break;		

begintalknode 90;
	state = 30;
	nextstate = 51;
	condition = gf(64,7) == 6 || gf(64,7) == 7;
	question = "What is the next item I need to obtain?";
	text1 = "_To create a disease is incredibly difficult, even for a Shaper. The flow of power must be controlled exactly. Anything above a tiny surge will incinerate the sample. I need a perfectly formed crystal conduit._";
	text2 = "_Such things are rare. They are either deep in rebel lands or tightly held by other Councilors. However, by interrogating a rebel spy, I found the location of one that I can obtain._";
	text3 = "_It is in tunnels under the Mera-Tev. Find it and bring it to me._";
	code =
		sf(64,7,7);
		toggle_quest(21,1);
	break;

begintalknode 91;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Where under the Mera-Tev?";
	text1 = "_There is a thing called the Shadow Road. Rogues and rebels use it to flee from Shaper control. Once the Purity Agent is released, its existence will be irrelevant._";
	text2 = "_The conduit was taken into there. Follow it in, find it, and bring it out._";

begintalknode 92;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Why would such a valuable artifact be taken there?";
	text1 = "_I can only expect that the rebels are carrying out Shaping experiments directly under Astoria's nose. Not that it matters._";
	text2 = "_Once I am victorious, they will all be dead anyway._";

begintalknode 93;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 7 && has_spec_item(38) > 0;
	question = "I found the crystal. (Give it to him.)";
	text1 = "_Careful! Careful! It is supremely delicate._ He takes the stone and inspects it. _Oh, dear. It appears to be slightly marred. Still, I think it is intact enough for our purposes. It will cause delays, but not defeat._";
	text2 = "A bounty is brought to you: A pouch of gold coins, a ring, and a polished crystal. _That ring protected me during several truly catastrophic experiment failures. I hope it protects you as well._";
	text3 = "_The stone will be taken to Kayar's Spire and installed immediately. Only one more item must be recovered. Although this mission is a bit more ... embarrassing than the others._";
	code = 
		set_spec_item(38,-1);
		set_flag(64,7,8);
		toggle_quest(21,3);
		award_party_xp(200,30);
		reward_give(341);
		reward_give(390);
		change_coins(750);
	break;		

begintalknode 94;
	state = 30;
	nextstate = 52;
	condition = gf(64,7) == 8 || gf(64,7) == 9;
	question = "What is the final item I need to obtain?";
	text1 = "_I must confess, at this point, that I made an error. I obtained a scrying stone. A stone that can make very small things appear to be much, much larger. Necessary to make a creation as small as ours._";
	text2 = "_I then placed it, not in Kayar's Spire, but in a set of vaults to the south of here, where other work was taking place. I thought to keep it safe there, from accidents at the Spire. Then something went wrong in the vaults._";
	text3 = "_Now I need you to go to the vaults, find the scrying stone, and return it to me. Be wary. Whatever happened in the vaults, they have become very dangerous._";
	text4 = "He removes a key from a pouch and hands it to you. _This is the last key to the vaults we have. The rest were lost within. Please be careful not to lose it._";
	code =
		sf(64,7,9);
		toggle_quest(22,1);
		if (has_spec_item(53) == 0)
			set_spec_item(53,1);
			else rs(4);
	break;

begintalknode 95;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "What was being studied in the Vaults?";
	text1 = "He looks uncomfortable. _Ahhh ... Various things. Solutions. Ways to end the war. If we failed to create the Purity Agent._";

begintalknode 96;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "What happened in the Vaults?";
	text1 = "_I don't know. We lost communication with them about the time you first arrived in Zephyr Oasis. I have sent outsider soldiers to investigate. None have returned._";
	text2 = "_If you fail to return, I will have to put a Guardian or Agent at risk. I hope you will not make that necessary._";

begintalknode 97;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Where should I look for the scrying stone?";
	text1 = "_There is a subvault deep within the main vault. The key I gave you should allow you entry. The gate there is very well warded._";

begintalknode 98;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 9 && has_spec_item(7) > 0;
	question = "I found the crystal. (Give it to him.)";
	text1 = "You hand the polished crystal to Sage Taygen, being very careful not to drop or jar it. He takes it reverently, pulls aside the velvet, and inspects it. _Perfect. A bit of polish is all it will take to get it ready._";
	text2 = "Your reward is brought to you: A heavy pouch of gold coins, a pair of gauntlets, and a polished crystal. _Those gauntlets belonged to my predecessor. They were left to the city. I give them to you. I hope that they aid you._";
	text3 = "_The work is almost complete. The final works of Shaping will begin, and we will see if it is actually possible to complete the Purity Agent._";
	code = 
		set_spec_item(7,-1);
		set_flag(64,7,10);
		toggle_quest(22,3);
		award_party_xp(200,30);
		reward_give(476);
		reward_give(394);
		change_coins(1000);
	break;		

begintalknode 99;
	state = 30;
	nextstate = 53;
	condition = gf(64,7) == 10 || gf(64,7) == 11;
	question = "What do I need to do now?";
	text1 = "_You must go to Kayar's Spire. Agent Caluma is about to begin the final works of Shaping. All of the steps have been planned out on papyrus. Now we need to see if they can be converted to reality._";
	text2 = "_She is going to try to create the Agent. Not release it. Just create it. And I want you there. If something goes wrong, you may need to act._";
	text3 = "_Travel to Kayar's Spire. Caluma will aid you from there. I will send word ahead. You will be allowed to pass._";
	code =
		sf(64,7,11);
		toggle_quest(23,1);
	break;

begintalknode 100;
	state = 30;
	nextstate = -1;
	condition = gf(100,25) > 0 && gf(64,7) == 11;
	question = "It is done. The Purity Agent has been created. Though it may not work on drakons.";
	text1 = "Sage Taygen actually sits up. He is so energized that he is practically shaking. _Is it true? Is victory truly at hand? I have the power ... the power ... I will be the savior of the Shapers. To leave only the drakons alive ..._";
	text2 = "_But I will be humble in my victory. It will not be released. Not yet. No, I will obey the law. I will go to the Council. I will offer my prize to them ... Yes. There is one more thing you must do._";
	code = 
		set_flag(64,7,12);
		toggle_quest(23,3);
		award_party_xp(200,30);
	break;		

begintalknode 101;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "What will I need to do when there?";
	text1 = "Sage Taygen picks at his beard nervously, trying to keep his excitement in check now that success is so close.";
	text2 = "_Do what Agent Caluma tells you. Deal with rogues. Kill saboteurs. Run errands. Fetch flasks. Whatever is necessary to complete the work._";

begintalknode 102;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 12 || gf(64,7) == 13;
	question = "Where should I go now?";
	text1 = "_I am about to leave this place. I am going to the Shaper Citadel. Our annual meeting is close. All members of the Council will depart for there very soon. Once the Council meets, I will present my case._";
	text2 = "_I will stand before them and I will offer them victory! It will repel them. They will be weak-willed. They have been infected with creation-nature. But they will not refuse the death of all their fears!_";
	text3 = "_You must travel to the Council hall as well, in the Shaper Citadel. The path up to it is at the northwest corner of the Storm Plains. I will send word that you are to be let in._";
	text4 = "_I want you to be present when I make my argument. This is important. Go there soon. Do not disappoint me._";
	code = 
		set_flag(64,7,13);
		toggle_quest(24,1);
		sf(100,16,1);
		sf(100,18,1);
	break;

begintalknode 103;
	state = 30;
	nextstate = -1;
	condition = gf(100,4) == 2 && gf(100,8) == 0;
	question = "I need help dealing with this control tool.";
	text1 = "Sage Taygen says, _So it is true. You are one of Rawals's victims. One day, when I get my vengeance on him, he will pay for the abominations he has created. When the time is right._";
	text2 = "_Now that you work for me, you may go to Kayar's Spire. When you are there, Agent Caluma might be able to help you with that problem._";

begintalknode 104;
	state = 30;
	nextstate = -1;
	condition = gf(100,5) == 2;
	question = "I work for the drakons now. Die, Shaper! (Attack.)";
	text1 = "Sage Taygen, distracted as he is, takes little time to return to reality. _What? You challenge a member of the Council in his own throne room? Die, traitor!_";
	action = END_TALK;
	code =
		sf(64,1,1);
		make_zone_hostile();
	break;

begintalknode 105;
	state = 30;
	nextstate = -1;
	condition = gf(64,6) > 0;
	question = "That is all I need to know.";
	text1 = "Sage Taygen says, _Well, you have my leave to depart. And remember, the laws of the Shapers will be restored!_";
	action = END_TALK;

begintalknode 106;
	state = 30;
	nextstate = -1;
	condition = gf(64,7) == 1 && gf(68,2) > 0;
	question = "Camp Dranir was not retaken. The Shaper attack was defeated.";
	text1 = "Sage Taygen nods. _Then you have failed me. I require my servants to be reliable. You are not._";
	text2 = "_Leave me. I will not forbid you to travel the Dera Reaches, but you will never be my ally._";
	code = 
		set_flag(64,7,20);
		toggle_quest(90,3);

	break;		

begintalknode 108;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Sage Taygen shouts, _You challenge me? In my own throne room? You will pay for this insolence with your life. Creations! Come! Aid me!_";

begintalknode 109;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Sage Taygen is becoming very nervous about the current situation. _What have you done to my defenders? My creations! You have turned them against me! I knew it would happen! I should have been harsher!_";
	text2 = "Sage Taygen is becoming very nervous about the current situation. _You are stronger in battle than I feared. If I am to truly fight a duel, it will be on my own terms._";
	text3 = "_I will retire to Kayar's Spire. If you would challenge me, it will be there!_";
	text4 = "He mutters a spell. A defensive shield envelops him. He turns and runs.";
	code =
		if (gf(63,21) > 3)
			rs(2);
			else rs(1);
	break;
	
// Sage Taygen #2

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "Sage Taygen is sitting in his throne. He looks like an utter wreck. You have never seen a Shaper look so pitiful in public. He sits curled up on his throne. His clothes are filthy and his beard is tangled. You see bits of food in it.";
	text2 = "When you approach, he looks at you. He doesn't seem to know what he is saying. He says, _What ... What ... What is happening?_";
	code =
		if (gf(64,9) > 0)
			rs(2);
	break;
	
begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = gf(64,9) == 0;
	question = "The Zephyr Oasis is afflicted with disease.";
	text1 = "_I ... I know ... I did not believe, when it came. I thought I could not have ... But it was. It did._";
	
begintalknode 112;
	state = 110;
	nextstate = 111;
	condition = gf(64,9) == 0;
	question = "What is wrong?";
	text1 = "_The disease came. It took ... Took ... Leena. My consort. She ... Gone._ He chokes back a sob.";

begintalknode 113;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "Was she the only one who died?";
	text1 = "_No. Others ... I caused this. Caused them to die. But ... Leena ... She is the one that hurts the most._";
	
begintalknode 114;
	state = 111;
	nextstate = 112;
	condition = 1;
	question = "The disease killed your consort?";
	text1 = "_It happened so fast. Swept through. Could not believe ... Did not realize ... I reached out for help. Too late._";
	text2 = "_I was responsible ... I ordered it made. I Shaped ..._ His voice trails off.";
	
begintalknode 115;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "So it was your fault. You killed her.";
	text1 = "He looks up at you, furious. _You taunt me? I maintain my power, outsider. You mock me at your peril. Get out, or you will suffer. Leave me to my grief in peace._";
	action = END_TALK;
	code = 
		sf(64,9,1);
	break;
	
begintalknode 116;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "It wasn't your fault. These sorts of accidents are the inevitable result of Shaping.";
	text1 = "He looks up at you. He has a strange, hopeful look on his face. As if there is something he can blame to alleviate his grief. _Yes ... You are right. It was Shaping. I was brought up to Shape, trained to Shape. And it ..._";
	text2 = "_It killed her. Shaping killed Leena. Leave me. I have much to think about._ He waves you away and sets to reworking his thoughts. No doubt, soon he will see himself as a victim of someone else's actions.";
	action = END_TALK;
	code = 
		sf(64,9,1);
	break;
	
begintalknode 117;
	state = 110;
	nextstate = -1;
	condition = gf(64,9) > 0;
	question = "I want to speak with you.";
	text1 = "_No ... No ... You have said enough. Leave me. Leave me be. I have much to ... To think about. To grieve. For what was done to me._ He waves you away.";
	action = END_TALK;

	
begintalknode 119;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You try to speak with Sage Taygen, but he has somehow learned of your betrayal. _You! You have great nerve, to come back here after turning on me. You are lucky. I will spare you. But leave me, before I treat you like the enemy you are!_";
	action = END_TALK;
	
// Tahn

begintalknode 122;
	state = -1;
	nextstate = 120;
	condition = 1;
	question = "Tahn";
	text1 = "There is a servile here, working at keeping the walkways clean and swept. Considering how much dust blows in from the south, it is a futile quest. You immediately note two things about him.";
	text2 = "First, he is a small servile, with delicate hands. He is the sort that was bred to be a scribe or lab assistant. Second, there is a metal ring around his wrist. Probably to help lock him up easily at night.";
	text3 = "He sees you staring at him. He says, nervously, _I am Tahn. Excuse me. Sweeping. Sweeping._";
	text5 = "Tahn continues to sweep silently, making slow sad circles around you as he gathers up the dust. He seems to take little satisfaction in this pointless work.";
	action = INTRO;
	
begintalknode 123;
	state = 120;
	nextstate = 121;
	condition = 1;
	question = "What is that metal loop for?";
	text1 = "He holds up his hand. You note that the metal loop has a small ring to one side. Definitely for keeping him chained up at night.";
	text2 = "He says, in a flat voice, _Is to help me obey law. Keep me secure._";
	
begintalknode 124;
	state = 120;
	nextstate = 122;
	condition = 1;
	question = "You seem unusual for a street sweeper.";
	text1 = "_Was a scribe. An assistant in palace. Arranged scrolls. Took notes. Could read and write._";
	text2 = "He looks over at the palace, a sad, wistful look on his face.";
	
begintalknode 125;
	state = 120;
	nextstate = -1;
	condition = 1;
	question = "You don't seem happy.";
	text1 = "_I ... I should not talk like this. Stay away. You will get me punished._";
	text2 = "He walks away quickly, rearranging the dust with his broom as he goes.";
	action = END_TALK;
	
begintalknode 126;
	state = 121;
	nextstate = -1;
	condition = 1;
	question = "Does it hurt?";
	text1 = "_Did hurt. Skin grows thick. Now almost never notice it. Almost never._";
	
begintalknode 127;
	state = 121;
	nextstate = -1;
	condition = 1;
	question = "Why do they keep you chained up?";
	text1 = "_To keep me from escaping. To keep me still if any rebel serviles come in the night._";
	text2 = "He doesn't want to say anything else about it. Understandably.";	
	text3 = "_Be careful. If you are not, you may end up with a ring on your wrist like mine._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(2);
			else rs(3);
	break;
	
begintalknode 128;
	state = 122;
	nextstate = -1;
	condition = 1;
	question = "Are there many educated serviles in the Dera Reaches?";
	text1 = "_Do not know. So many taken away. Probably put to work in fields. In mines. Who knows how many there are now? Left, I mean._";
	text2 = "_But is law. Must obey. Serviles have no choice._";
	
begintalknode 129;
	state = 122;
	nextstate = 123;
	condition = 1;
	question = "Why did you have to stop doing it?";
	text1 = "_Change in laws. Was thought too smart. To not be too close to ... what I was made to do. Put to work. Doing this._ He holds out the broom.";
	text2 = "_Could be worse._";	
	
begintalknode 130;
	state = 123;
	nextstate = -1;
	condition = 1;
	question = "How could it be worse?";
	text1 = "He looks down at the ground and says two words. _The camps._";
	text2 = "Then he turns away from you. _Must work. Must sweep. If I do, I am safe._ He walks away quickly, sweeping as he goes.";
	action = END_TALK;

// Santela

begintalknode 133;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "The Zephyr Oasis has been a meeting place for caravan routes since before the days of the Shapers. Once, this dusty town was full of bazaars and shouting merchants. Now, in wartime, only this small bazaar remains functional.";
	text2 = "A single old woman looks after the wares by the walls. Her wrinkled skin is deeply tanned, and age and decades of sunlight have left her hair nearly white. Her eyes are very sharp. You don't savor negotiating with her.";
	text3 = "_Many greetings to you on this bright day. I am Santela. Once caravan master. Now, regretfully, a trader and breeder in the safety of this town._";
	text5 = "Santela says, _What else do you wish? I trade. I breed. I'm sure I can somehow be of use to an intrepid traveler like yourself._";
	action = INTRO;
	
begintalknode 134;
	state = 130;
	nextstate = -1;
	condition = gf(64,3) > 0 && gf(64,6) == 0;
	question = "I would like to trade with you.";
	text1 = "_Ahhhh ... The presence of an unrestrained creation makes me nervous. Surely you have Shaper permission for this? What? You don't? Perhaps you should obtain it before a guard takes interest in you._";
	
begintalknode 135;
	state = 130;
	nextstate = 131;
	condition = gf(64,3) == 0 || gf(64,6) > 0;
	question = "I would like to trade with you.";
	text1 = "_Of course. I can buy any useful trade goods you have, and I have a variety of items of interest to adventurers and mercenaries._";
	
begintalknode 136;
	state = 130;
	nextstate = 132;
	condition = 1;
	question = "You led caravans?";
	text1 = "_Once. Once, I was a student. I had promise, but I was called by the road. I passed through many lovely lands. And yet, the stark beauty of the Dera Reaches called me to stay._";
	
begintalknode 137;
	state = 130;
	nextstate = 134;
	condition = 1;
	question = "What do you breed?";
	text1 = "_I have pens for breeding batons and living tools. Small creations, of great value._";
	
begintalknode 138;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "What do you have for sale?";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Santela's Bazaar",
		  "Santela does have a variety of high-quality goods. Sadly, when it comes to dickering over price, she is a clever negotiator.",
		  59,5,0);	
	break;
	
begintalknode 139;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "I would like to sell something.";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;
	
begintalknode 140;
	state = 131;
	nextstate = 130;
	condition = 1;
	question = "I don't need anything else.";
	text1 = "_Ahhhh ... Does conversation interest you, perhaps?_";
	
begintalknode 141;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "How long ago was that?";
	text1 = "_Why, you come dangerously close to asking a lady her age. Surely you have better manners than that. Have some tea._ She smiles.";
	
begintalknode 142;
	state = 132;
	nextstate = 133;
	condition = 1;
	question = "What did you study?";
	text1 = "She holds out her hand, palm up. A tiny, dancing orb of light appears over it, bobbing and shimmering. She closes her fist, and the light is snuffed out.";
	text2 = "_I have studied much, mastered much, over my lifetime. And yet, now, the peaceful life of a shopkeeper is for me._";
	
begintalknode 143;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "Is your life really that peaceful?";
	text1 = "_No. Recently, I have had to kill rogues. Perhaps I will again soon. I will not shirk from it, if it is needed._";
	
begintalknode 144;
	state = 134;
	nextstate = -1;
	condition = 1;
	question = "What does the law say about that?";
	text1 = "_Very little. Sage Taygen's new regime is harsh, but it only restricts creations that move under their own power. Plants and tool creations are unrestricted._";
	text2 = "_Thus, I am allowed the pens I maintain outside of town. There is great need for batons and thorns with which to defend this city._";
	
// Consort Leena

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Name";
	text1 = "There is a woman sitting at this table, sipping tea and sewing. She is in her forties, you suspect. Very attractive, and in clothes that are almost fashionable.";
	text2 = "The home itself is also out of place. All of the materials, like the stone, wood, and tapestries, were brought from the north. This room seems like it belongs in one of the great Shaper cities, not this remote outpost.";
	text3 = "The woman looks sternly up at you from her seat. Though she is small and delicate, she is no wilting flower. _I am Consort Leena, companion of Sage Taygen. Of the Council. I prefer to not be burdened by unexpected guests._";
	text5 = "Consort Leena continues to sew, making long sequences of delicate, intricate stitches. She doesn't look at you, but you are sure that she is aware of everything you do.";
	action = INTRO;
	code =
		// reset consort convo
		if (gf(100,4) > 2)
			sf(64,13,0);
	break;
	
begintalknode 151;
	state = 150;
	nextstate = 151;
	condition = gf(64,13) == 0;
	question = "I'd like to know about Sage Taygen.";
	text1 = "She doesn't look up from her stitching. _He is in the throne room, taking care of the city's affairs. You would do best to go there and deal with him._";
	text2 = "_If you want to see me, I am sometimes in the throne room with him._";
	
begintalknode 152;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "And this is his home?";
	text1 = "_It is. And I do not think he would appreciate visitors barging in like you have. Unless you think it is wise to anger a member of the Council._";

begintalknode 153;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "Why aren't you in the throne room now?";
	text1 = "She takes a sip of tea. _I am but an outsider. It makes some people uncomfortable to see me at Taygen's side. So, though he would prefer me there always, I know what is politic._";
	
begintalknode 154;
	state = 150;
	nextstate = -1;
	condition = gf(64,13) == 0;
	question = "What do you think of Sage Taygen's laws about the creations?";
	text1 = "She looks up at you, surprised. _Sage Taygen is a member of the Shaper Council! His words about what to do with the creations are law, merely by the fact that he says them._";
	text2 = "_The world has gone mad. Taygen is trying to bring it peace. That is all you need to know. Good day._ She returns to her work.";
	action = END_TALK;
	
begintalknode 155;
	state = 150;
	nextstate = -1;
	condition = gf(64,13) == 0 && gf(100,4) == 2;
	question = "I am now one of Sage Taygen's servants.";
	text1 = "She looks up at you again. This time she actually inspects you. _You look ... well traveled. I am glad that my partner is gaining allies once again. It has been a long, difficult road for him._";
	text2 = "_I am surprised that a servile would join him, though. I suppose that the wisdom of his course is so great that even creations are compelled by it._";
	code =
		sf(64,13,1);
		if (creature_type(pc_num()) != 46) 
			rs(2);
	break;
	
begintalknode 156;
	state = 150;
	nextstate = -1;
	condition = gf(64,13) == 0;
	question = "I'll be going, then.";
	text1 = "_Yes. Leave me to my privacy. Privacy does seem to be in short supply, these days._ She stops speaking and concentrates on her work.";
	action = END_TALK;
	
begintalknode 157;
	state = 150;
	nextstate = 152;
	condition = gf(64,13) > 0;
	question = "How did you come to be Sage Taygen's consort?";
	text1 = "She smiles. _You mean me? A mere outsider?_ She laughs. _Taygen met me early in his studies. He found me compelling. So much so that he forgave me my 'lowly' status._";
	
begintalknode 158;
	state = 150;
	nextstate = -1;
	condition = gf(64,13) > 0;
	question = "Do you have any tasks that need doing?";
	text1 = "_Oh, aren't you sweet? No, if I need anything, I will ask the mighty Councilor._ She smiles.";
	
begintalknode 159;
	state = 150;
	nextstate = 153;
	condition = gf(64,13) > 0;
	question = "What do you think of Sage Taygen's new laws?";
	text1 = "_Oh, it is a sad thing. Though you would not know it from speaking with him, he is greatly wounded by the rebellious nature of the creations. It has been a great trial for him._";
	text2 = "_But someone has to take it upon himself to make the necessary corrections. He is very brave._";
	
begintalknode 160;
	state = 152;
	nextstate = -1;
	condition = 1;
	question = "He was not supposed to be with an outsider?";
	text1 = "_Oh, no. The Shapers fraternize among their own king. Taygen kept me hidden from the rest of the Shapers until his rank was so high that he could be forgiven for his eccentricities. Now all know that I am his partner._";
	text2 = "_Though never his wife. The Shapers would never tolerate that._";
	
begintalknode 161;
	state = 152;
	nextstate = -1;
	condition = 1;
	question = "And he brought you here?";
	text1 = "_We had no choice. It is a miserable place, is it not? But I have made my peace with it._";
	
begintalknode 162;
	state = 153;
	nextstate = -1;
	condition = 1;
	question = "How have the creations reacted to the new laws?";
	text1 = "_It has been very hard for them, poor things. But I suppose they brought it upon themselves with their disobedience. Yes?_";
	text2 = "_At least, when the loyal creations are restrained, it is far easier to tell who the rebellious ones are._";
	
begintalknode 163;
	state = 153;
	nextstate = -1;
	condition = 1;
	question = "Do you know what his plan to end the war is?";
	text1 = "_I do not. He has said that it is better if nobody knows. And I trust him. I am sure that it will be a good plan, though. I trust him completely._";
	
// Guardian Kulish

begintalknode 168;
	state = -1;
	nextstate = 170;
	condition = 1;
	question = "Name";
	text1 = "There is a Guardian working in this small Shaping workshop. He is a grim and sullen man. Years of frowning have left several deep creases on the weathered skin of his face.";
	text2 = "He wears the traditional heavy plate armor of his sect, but it seems to have mainly served to protect him in the laboratory. It has been scorched by explosions and pitted by acid splatters.";
	text3 = "_Ahhhh ..._ he says as he inspects you. _The outsider. The ... unusual one. I am Guardian Kulish. Assistant to the ... Councilor. Taygen. What do you want here?_";
	text5 = "Guardian Kulish stands like a steel statue and looks down at you. He is a very tall man. Massive, a natural Guardian. And, like many of his sect, the unusual and the eccentric are distasteful to him.";
	text6 = "And he sees you, definitely, as both unusual and eccentric.";
	action = INTRO;
	code =
		if (gf(64,6) > 0)
			sf(64,15,1);
		if (gf(100,4) == 3)
			sf(64,15,0);
	break;
	
begintalknode 169;
	state = 170;
	nextstate = -1;
	condition = gf(64,15) == 0;
	question = "Can I speak with you?";
	text1 = "_No. The presence of unsecured creations without license is a violation of our laws. I should discipline you._";
	text2 = "_Instead, I will generously allow you to find Sage Taygen and apply for permission to remain here. I would advise you not to delay._";
	text3 = "_I should not until Sage Taygen has given you permission to wander our town. Since you have no unsecured creations, I am not concerned about you, but it is better to be sure._";
	text4 = "_You are a traitor to our cause. I am not to deal with you in any way. Leave me._";
	action = END_TALK;
	code =
		clear_strings();
		if (gf(100,4) == 3)
			as(4);
			else if (gf(64,3) > 0) {
				as(1); as(2);
				}
				else as(3);
	break;
	
begintalknode 170;
	state = 170;
	nextstate = 171;
	condition = gf(64,15) > 0;
	question = "You are Sage Taygen's assistant?";
	text1 = "_I am not used to being interrogated by a mere servile. It is most distasteful. However, Taygen has commanded me to be civil to you. I must obey._";
	text2 = "_I am not used to being interrogated by an outsider, especially one as ... compromised as you are. However, Taygen has commanded me to be civil to you. I must obey._";
	text3 = "_That is how I am recorded in the ledgers of the Shapers. The immediate inferior of Taygen. Yes._";
	text4 = "_I am charged with the creation, recreation, and maintenance of the creations that defend this place. An honorable task for a Guardian, though Taygen's laws make it more difficult._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(2);
			else rs(1);
	break;
	
begintalknode 171;
	state = 170;
	nextstate = 172;
	condition = gf(64,15) > 0;
	question = "Tell me about the Councilor.";
	text1 = "_He has worked for the Shapers for many years. He has done research of, I understand, skill. He is loyal. In time, he was rewarded with his post._";
	text2 = "_He came here with his ... consort. And then the war began._";
	text3 = "_Of course, the consort is no longer a problem._";
	code =
		if (gf(100,21) == 0)
			rs(3);
	break;
			
begintalknode 172;
	state = 170;
	nextstate = -1;
	condition = gf(64,15) > 0 && gf(100,4) < 2 && gf(100,3) < 2;
	question = "Can I receive training?";
	text1 = "Guardian Kulish would laugh if he was capable. _What? Share power with you?_";
	text2 = "_You are a ... creature. An outsider, and a twisted one at that. You will have none of our secrets._";
	text3 = "_You are a ... creation. You should be in chains! You will have none of our secrets._";
	text4 = "This response is irritating, but you note that you can keep your rage under control. Oddly, the anger does not come when you are facing someone else who can Shape.";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(2);
			else rs(3);
	break;
			
begintalknode 173;
	state = 170;
	nextstate = 175;
	condition = gf(64,15) > 0 && (gf(100,4) == 2 || gf(100,3) == 2);
	question = "Can I receive training?";
	text1 = "The thought of training an outsider is clearly very distasteful to Guardian Kulish. However, he has his orders from a member of the Council, and it is in his nature to obey.";
	text2 = "The thought of training a creation is clearly violently distasteful to Guardian Kulish. However, he has his orders from a member of the Council, and it is in his nature to obey.";
	text3 = "_I must, because you serve Sage Taygen, train you in magic and Shaping._";
	text4 = "_Sage Taygen has told me that, since you a loyal servant of General Alwan, I must train you in magic and Shaping. I suppose you are thought to be a sufficient foe of the rebels._";
	text5 = "_I am also able to teach you about certain Barred creation types. You should only learn about these for study, not use._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(1);
			else rs(2);
		if (gf(100,4) == 2)
			rs(4);
		if (gf(100,3) == 2)
			rs(3);
	break;
	
begintalknode 174;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "An honorable task?";
	text1 = "_The Guardians lead in war. When the Shapers must do something that requires an army, the Guardian leads the charge._";
	text2 = "_Thus, my kind specializes in creating and directing military forces. In assault, or in defense._";
	
begintalknode 175;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "How has Taygen made it more difficult?";
	text1 = "_All defensive creations must be absorbed and recreated every year. Destroying so many functional defenders is very distasteful to me. Wasteful._";
	text2 = "_Though, I must admit, it has greatly reduced our rogue problems._";
	
begintalknode 176;
	state = 171;
	nextstate = -1;
	condition = gf(100,4) == 2;
	question = "What do you think of Taygen's plan? The Purity Agent?";
	text1 = "_I have made it clear that I wish to know nothing of it. I will not share the glory if it succeeds, or the punishment if it ... succeeds, I suppose._";
	text2 = "_I am a warrior. The Purity Agent seems like a creation of politics to me._";
	
begintalknode 177;
	state = 172;
	nextstate = -1;
	condition = 1;
	question = "What is your opinion of his consort?";
	text1 = "_Leena? I have no opinion, no opinion at all, about the outsider that a Shaper has chosen to interact with. If Taygen chooses to take an outsider into his confidence, why would I question it? An outsider._";
	text3 = "_That she was frail. Too weak to travel the same path Taygen did. He and I are untouched by the new disease. Outsiders are. Some of them much more than others._";
	action = DEP_ON_SDF 100 21 0;
	
begintalknode 178;
	state = 172;
	nextstate = 173;
	condition = 1;
	question = "How has the war gone?";
	text1 = "Guardian Kulish looks grim. Well, even grimmer. _I understand that Sage Taygen is an excellent researcher. In the laboratory. I assume that telling you these sorts of things is what he meant when he told me to be social._";
	text2 = "_Now he is too lost in grief to do anything. At least I am able to give more directions now._";
	text3 = "_At least I have had much practice making new creations to replace the lost._";
	code =
		if (gf(100,21) == 0)
			rs(2);
	break;
	
begintalknode 179;
	state = 173;
	nextstate = 174;
	condition = 1;
	question = "You don't seem to have a high opinion of Sage Taygen.";
	text1 = "_He is a member of the Council. I would not dare oppose him._";
	
begintalknode 180;
	state = 174;
	nextstate = 170;
	condition = 1;
	question = "But you would not make a great effort to defend him. If it came to that.";
	text1 = "_We tread in a dangerous area. I would not speak of it._";
	text3 = "Kulish knows that you are sworn to serve Taygen. _Sage Taygen is a Shaper, with brilliant ideas. I might not agree with everything he has done, but I am completely loyal._";
	text4 = "_I would discuss something else._";
	action = DEP_ON_SDF 100 4 1;
	
begintalknode 181;
	state = 175;
	nextstate = -1;
	condition = 1;
	question = "I want to learn about magic.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Guardian Kulish",
		  "Guardian Kulish does not want to teach you magic, but you are an ally of a member of the Council. He has been commanded to aid you.",
		  60,5,0);	
	break;
	
begintalknode 182;
	state = 175;
	nextstate = -1;
	condition = 1;
	question = "I want to learn about Shaping.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Guardian Kulish",
		  "Guardian Kulish does not want to teach you Shaping, but you are an ally of a member of the Council. He has been commanded to aid you. Some of these creation types are meant for experiments only, not use.",
		  61,5,0);	
	break;
	
begintalknode 183;
	state = 175;
	nextstate = -1;
	condition = gf(100,4) == 2;
	question = "I want advanced training in magic.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Guardian Kulish",
		  "Guardian Kulish is only offering to teach you these spells because Sage Taygen is forcing him.",
		  20,5,0);	
	break;	
	
begintalknode 184;
	state = 175;
	nextstate = 170;
	condition = 1;
	question = "I don't need any more training.";
	text1 = "_I am relieved._";

	
// Commander Pritz

begintalknode 188;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Commander Pritz";
	text1 = "There is a commander of the Shaper army sitting at this desk, writing orders.";
	text2 = "Though he is an officer and an outsider, he wants to make sure all visitors know of the sincerity of his efforts in the war. That is why he keeps a ceramic jar full of creation skulls on the floor by his desk.";
	text3 = "He notices that you are looking at them. _Killed them all myself. Glaahks. Drayks. Even a human. I am Commander Pritz. Leader of the human soldiers in the Oasis. Always happy to greet a visitor. Or hire one._";
	text5 = "Commander Pritz says, _What else do you want? Always happy to aid a fellow outsider. Or hire. Especially when it leads to more dead rogues._";
	action = INTRO;
	code =
		if (gf(64,6) > 0)
			sf(64,17,1);
		if (gf(100,4) == 3)
			sf(64,17,0);
	break;
	
begintalknode 189;
	state = 190;
	nextstate = -1;
	condition = gf(64,17) == 0;
	question = "Can I speak with you?";
	text1 = "_No, I don't think so. Unsecured creations without license are illegal here._";
	text2 = "_You should go to the palace and talk to the Shapers._ He points to the south. _If you get permission from them to be here like that, I can talk to you._";
	text3 = "_I think that I am supposed to send you to Sage Taygen before I deal with you. Since you have no unsecured creations, I'm not worried, but orders from a Shaper ..._";
	text4 = "_Sage Taygen has declared that you are a traitor to our cause. I am not to deal with you in any way. Sorry._ He returns to work.";
	action = END_TALK;
	code =
		clear_strings();
		if (gf(100,4) == 3)
			as(4);
			else if (gf(64,3) > 0) {
				as(1); as(2);
				}
				else as(3);
	break;

begintalknode 190;
	state = 190;
	nextstate = 191;
	condition = gf(64,17) > 0;
	question = "How is the war going?";
	text1 = "_It has been a difficult struggle. The rogues are relentless. The rebels infiltrated the Reaches early in the war, and it has been a challenge to locate and dislodge them in the wastes._";
	text2 = "_And yet, I am sustained by my beliefs. They keep me fighting when all seems lost._";

begintalknode 191;
	state = 190;
	nextstate = 194;
	condition = gf(64,17) > 0;
	question = "Tell me about the Zephyr Oasis?";
	text1 = "_A harsh place. Unforgiving to the unprepared. But I was born here, and I can see its beauty._";
	text2 = "_If only we could purge it from the rogues and filth that infect it, it could be paradise._";
	
begintalknode 192;
	state = 190;
	nextstate = 195;
	condition = gf(64,17) > 0;
	question = "You hire traveling adventurers?";
	text1 = "_I do. It is such a struggle keeping the rogues from our gate that I lack soldiers for many of the tasks I am required to do._ He thinks. ";
	text2 = "_There is a delivery I need done. To an outpost not far to the east._";
	text3 = "_There have been sightings of a drakon to the south, not far from the shore. I could use someone to investigate._";
	text4 = "_I do, sometimes, but I currently have no tasks to perform. You have been a great help._";
	code =
		clear_strings();
		if ((gf(64,18) > 1) && (gf(64,19) > 1))
			as(4);
			else {
				as(1);
				if (gf(64,18) <= 1)
					as(2);
				if (gf(64,19) <= 1)
					as(3);
				}
	break;

begintalknode 193;
	state = 190;
	nextstate = -1;
	condition = gf(64,17) > 0 && gf(64,12) == 1 && gf(65,1) >= 8;
	question = "I killed eight wingbolts in that ruined camp.";
	text1 = "You describe your battle with the wingbolts. _Good. Good. I was starting to abandon hope that anyone would collect that bounty._";
	text2 = "You are brought a cash payment and a pair of beautifully crafted legplates. _Compliments of the Shapers. As always, they pay very well to those who aid them._";
	code = 
		set_flag(64,12,2);
		toggle_quest(92,3);
		award_party_xp(200,30);
		reward_give(358);
		change_coins(400);
	break;		
	
begintalknode 194;
	state = 190;
	nextstate = -1;
	condition = gf(64,17) > 0 && gf(64,16) == 1 && gf(64,22) < 2;
	question = "There is someone named Denna in town. She is a thief and a criminal.";
	text1 = "You omit, of course, any details of your role in her crimes. _Oh, really? Her? Yes, we were quite suspicious of her, even though she has been very careful to avoid our notice. She has the taint of the rebel about her._";
	text2 = "_Without evidence, I am hesitant to kill a human. Of course, if you could goad her into a duel or attacking you, I would certainly look the other way._";
	code =
		sf(64,16,2);
	break;
	
begintalknode 195;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "Who is creating the rogues?";
	text1 = "_I am not sure. Perhaps there are rogue Lifecrafters hiding in the desert. Perhaps the rebels are still landing rogues on the southern shore under cover of darkness._";
	text2 = "_Or, most likely, the rogues are breeding, and each new generation has an innate hatred of our kind. In this case, we will never be free until we smash all of their nests._";
	
begintalknode 196;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "Do you ever go out and fight yourself?";
	text1 = "_Of course. Few know the hills and paths south of the Zephyr Oasis better than me. Our soldiers best learn how to function out in the wastes by example._";
	
begintalknode 197;
	state = 191;
	nextstate = 192;
	condition = 1;
	question = "Tell me about your beliefs.";
	text1 = "_Once, when I was young, I heard of a sect called the Trakovites. Few have heard of them. They believe that Shaping itself is evil and must be ended._";
	text2 = "_I am ashamed to admit that I flirted with joining them, even though they are rightly hunted by the Shapers. The reason is that I feared and mistrusted creations, even when they seemed to serve us._";
	text3 = "_No offense intended to you, servile._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(3);
	break;
	
begintalknode 198;
	state = 192;
	nextstate = 193;
	condition = 1;
	question = "What happened then?";
	text1 = "_I realized that the Trakovites were wrong-headed. Yes, Shaping is very dangerous, but only because we tolerate insubordination among creations._";
	text2 = "_I resolved then to take the best part of their beliefs. I hunt the bad creations, the sort the Trakovites hate. And that hunt will go on as long as necessary. Farther, in fact, than any of us may have suspected._";
	
begintalknode 199;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "What do you mean?";
	text1 = "_Who knows how many creations have the seeds of rebellion within them? Perhaps, when we look closely enough, we will see that none of them live up to our standards. What then?_ He is distracted when he says it, lost in thought.";
	text2 = "But then he breaks the tension with a laugh. _But I am lost in philosophy. Let me quit boring you._";
	
begintalknode 200;
	state = 194;
	nextstate = -1;
	condition = 1;
	question = "The filth?";
	text1 = "_Rebels. Weak-minded and unrestrained creations. Everything that has spent the last few years taking away our peace and killing our friends and families._";
	
begintalknode 201;
	state = 195;
	nextstate = -1;
	condition = gf(64,18) < 2;
	question = "Perhaps I can make that delivery.";
	text1 = "_Excellent. I have several scrolls that need to be taken to the research outpost to the east. Dera Purity Workshop, I think it's called. To be delivered to Platano. Just Platano. An outsider, like us._";
	text2 = "He hands you several scrolls, tightly bound by a strip of leather.";
	text3 = "_Show the scrolls to the guards, and you should be able to get in easily. You will be paid upon delivery._";
	code = 
		set_flag(64,18,1);
		toggle_quest(93,1);
		if (has_spec_item(21) > 0)
			rs(2);
			else set_spec_item(21,1);
	break;
	
begintalknode 202;
	state = 195;
	nextstate = -1;
	condition = gf(64,19) < 2;
	question = "I'd like to know more about the drakon.";
	text1 = "_Well, some soldiers on patrol claimed that they saw it. I'd think it was their imagination, but it's hard to hallucinate something that big. It was seen near the ocean, due south of here._";
	text2 = "_The road directly between the Oasis and the shore is heavily trapped. You may need to find a long way around._";
	text3 = "_Investigate thoroughly and let me know if you find any signs of the creature. If there is a drakon here, it must be hunted down immediately._";
	code = 
		set_flag(64,19,1);
		toggle_quest(94,1);
	break;	
	
begintalknode 203;
	state = 195;
	nextstate = 190;
	condition = 1;
	question = "I would like to discuss something else.";
	text1 = "_I would be happy to._";
	
begintalknode 204;
	state = 190;
	nextstate = -1;
	condition = gf(64,19) == 1 && gf(70,1) == 1;
	question = "I investigated the shore. I saw nothing. If there is a drakon there, it was remarkably well-hidden. (Lie.)";
	text1 = "Commander Pritz looks pleased. _I thought so. A drakon in our lands, so close to our outposts? Even those creatures would not be so arrogant._";
	text2 = "_I will pay you a fee for your time. Not a full bounty, of course, but fair pay for not fighting anything._ He gives you a pouch of coins.";
	code = 
		set_flag(64,19,2);
		toggle_quest(94,3);
		award_party_xp(100,30);
		change_coins(250);
		inc_flag(100,0,-2);
	break;		
	
begintalknode 205;
	state = 190;
	nextstate = -1;
	condition = gf(64,19) == 1 && gf(70,1) == 1;
	question = "I investigated the shore. There is a drakon there. (Describe it.)";
	text1 = "Commander Pritz looks disturbed. _I did not want to believe that it was so. A drakon in our lands, so close to our outposts? I had thought that even those creatures would not be so arrogant._";
	text2 = "_Now I must spare soldiers to hunt it down. It will be done immediately. Thank you for your help. The creature will be dead before the week is out._";
	text3 = "_I will pay you a fee for your time and aid. Not a full bounty, of course, but fair pay for not fighting anything._ He gives you a pouch of coins.";
	code = 
		set_flag(64,19,2);
		toggle_quest(94,3);
		award_party_xp(150,30);
		change_coins(300);
		inc_flag(100,0,2);
	break;		
	
begintalknode 206;
	state = 190;
	nextstate = -1;
	condition = gf(64,19) == 1 && gf(70,1) == 2;
	question = "I investigated the shore. There was a drakon there. Now it's dead.";
	text1 = "Commander Pritz looks both pleased and disturbed. _I did not want to believe that it was so. A drakon in our lands, so close to our outposts? I had thought that even those creatures would not be so arrogant._";
	text2 = "_But the problem was solved before I even knew it existed. For this aid, you deserve a proper bounty._ You are brought a pouch of gold coins and a pendant on a silver chain.";	
	code = 
		set_flag(64,19,2);
		toggle_quest(94,3);
		award_party_xp(200,30);
		reward_give(370);
		change_coins(250);
		inc_flag(100,0,2);
	break;		
	
	
begintalknode 207;
	state = 190;
	nextstate = 196;
	condition = gf(64,17) > 0 && gf(49,2) > 0 && gf(64,20) < 2;
	question = "I have learned that the bandit Bennhold might be hiding in your lands.";
	text1 = "He shakes his head. _Bennhold is a myth. The Shapers have declared it. Just something the brigands talk about to make themselves seem more important than they are._";
	text2 = "_The Shapers said it. It is the official truth._";
	text3 = "He leans close. _But if this clue you have is correct? And you did find a bandit calling himself Bennhold and remove him? I would give you a generous bounty._";
	code = 
		set_flag(64,20,1);
		toggle_quest(95,1);
	break;	
	
begintalknode 208;
	state = 190;
	nextstate = -1;
	condition = gf(64,20) == 1 && gf(101,11) > 0;
	question = "I hunted down the bandit calling himself Bennhold. He is dead.";
	text1 = "_Excellent. Now that the wretch is finally gone, the Shapers can acknowledge that he existed, and that he suffered the fate of all who question their rule._";
	text2 = "_That was very well done. I have lost count of those who died trying to hunt down that wily nomad. I hunt rogues without fear, but I have never even considered crossing that treacherous rogue._";
	text3 = "He leaves the room and returns soon after with a breastplate and a large satchel of coins. _A reward for your efforts. I am having to dig deep to come up with enough money to pay you, but it is well worth it._";
	code = 
		set_flag(64,20,2);
		toggle_quest(95,3);
		award_party_xp(250,30);
		reward_give(51);
		change_coins(700);
	break;		
	
begintalknode 209;
	state = 196;
	nextstate = -1;
	condition = 1;
	question = "Do you think Bennhold exists?";
	text1 = "_Why, if such a man existed, who could torment and evade the Shapers for so many years ... One would have to live his whole life in this desert to be mad enough to think such a thing is possible._";
	text2 = "_But I will tell you this. The Dera Reaches has many valleys, many hidden paths. The sort of places where one could easily create a lethal ambush._";
	
begintalknode 210;
	state = 190;
	nextstate = -1;
	condition = gf(100,21) > 0;
	question = "Can you tell me anything about the disease that has afflicted the Oasis?";
	text1 = "_It is completely unfamiliar. One day, it was not here. The next, it was. I have not been touched yet, but I'm sure I will have my ordeal soon enough._";
	text2 = "_It is painful and tiring, but it usually passes quickly. Only in a few can it cause the infections that kill. Usually the older and the very young._";
	text3 = "_Tragically, the Councilor's consort is one of those who succumbed._";
	
begintalknode 211;
	state = 190;
	nextstate = -1;
	condition = gf(64,17) > 0;
	question = "That is all I need to know.";
	text1 = "_Then good day to you._ He returns to his orders and inventories.";
	action = END_TALK;

// Rebeka

begintalknode 212;
	state = -1;
	nextstate = 210;
	condition = 1;
	question = "Name";
	text1 = "There is a large, muscular woman working at the forge. She is not used to it. Her hands are burnt and blistered, and she is drenched in sweat. However, she is slowly managing to repair a javelin head. Inexperienced, but not hopeless.";
	text2 = "When you enter, she is eager to take a rest. She steps back from the heat and says, _I am Rebena. This ..._ She indicates the smithy with a sweep of her hand. _This is my forge. Only mine._";
	text3 = "It is impossible to miss the bitterness in her expression when she says the last two words.";
	text5 = "Rebena speaks softly of affairs in the Zephyr Oasis with you, being careful to avoid any discussion of rogues, laws, or the war. She also applies salve to her burns and scratches.";
	action = INTRO;

begintalknode 213;
	state = 210;
	nextstate = -1;
	condition = 1;
	question = "Can I see your wares?";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Rebena's Smithy",
		  "Rebena still has some quality goods made when her husband was alive.",
		  62,4,0);	
	break;
	
begintalknode 214;
	state = 210;
	nextstate = 211;
	condition = 1;
	question = "You run this smithy by yourself?";
	text1 = "_I do. Once, I didn't. I assisted my husband. But then ... He was lost._";
	
begintalknode 215;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "But you knew enough to continue the work?";
	text1 = "_I watched him and aided him for years. I hope to keep this place functioning until I can find someone to buy it from me._";
	text2 = "_But I despair of that happening before the war ends._";
	
begintalknode 216;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "What happened to him?";
	text1 = "_He was going to the eastern camp. Delivering some locks and shackles. And then ... Then ... A rogue raid._";
	text2 = "_Creations. Creations murdered him. I don't like to talk about it._";
	
begintalknode 217;
	state = 210;
	nextstate = 212;
	condition = 1;
	question = "How have things been in the Oasis lately?";
	text1 = "_Improving. Sage Taygen understands the truth. He sees what creations can do to us. What they want to do to us. If they get a chance. They would take everything from us._";
	text2 = "_And I am not afraid to say it in front of an unchained creation. I am not afraid. Sage Taygen will make sure that we are not afraid anymore._";
	code =
		if (gf(64,3) == 0)
			rs(2);
	break;
	
begintalknode 218;
	state = 212;
	nextstate = -1;
	condition = 1;
	question = "And what do the creations think of this?";
	text1 = "_I do not care. The creations who murdered my husband did not ask what he thought. And they still didn't care when they did ... what they did ... to him afterwards._";
	
begintalknode 219;
	state = 212;
	nextstate = -1;
	condition = 1;
	question = "What will Sage Taygen do about them?";
	text1 = "_I have heard rumors. I do not want to talk about it. I just have faith that he will free us from fear of them forever._";
	text3 = "She looks nervous. She looks down at her hands. You can see how the skin is cracked and peeling. _He was going to do ... To ... I do not know. He is grieving too much to do anything now._";
	text4 = "_But he will recover. I believe that. We are counting on him to save us._";
	action = DEP_ON_SDF 100 21 0;
	
begintalknode 220;
	state = 210;
	nextstate = -1;
	condition = gf(100,21) > 0;
	question = "Has there been illness here recently?";
	text1 = "_There has been ... sickness. The Councilor's consort took ill. She is gone. And I ..._";
	text2 = "She looks down at her hands. You see that they aren't just burnt and scratched. The skin is cracked and peeling. Some spots seem almost gray. It must be painful.";
	text3 = "_I must return to work. Excuse me._ She turns, hiding her hands from you, and walks off.";
	action = END_TALK;
		
begintalknode 221;
	state = 211;
	nextstate = 214;
	condition = 1;
	question = "Was he skilled?";
	text1 = "_Very much so. He was even learning to work puresteel. He was very close. When he died._";
	
begintalknode 222;
	state = 214;
	nextstate = -1;
	condition = get_stat(20) > 3;
	question = "Really? Who around here knows how to work it?";
	text1 = "_Due south from here, near the shore, there ..._ She stops. _I really shouldn't say._";


// Federa

begintalknode 230;
	state = -1;
	nextstate = 230;
	condition = 1;
	question = "Federa";
	text1 = "There is a tired-looking man sitting at this table, gnawing on a roll and drinking a mug of bitter, herbal brew. He motions for you to sit down across from him. He seems to want company.";
	text2 = "_I am Federa,_ he says. _Of Camp East Alpha. Came here to get help. I need to talk to someone to calm my nerves before I see the Shapers._";
	text5 = "Federa is still sitting at the table, brooding and drinking his bitter, green tea. _More talking? I don't mind. I hate facing Shapers._";
	text6 = "As you talk, you notice that he has picked up a nasty cough. The skin on his face is dry and cracked.";
	action = INTRO;
	code =
		if (gf(100,21) == 0)
			rs(6);
	break;
	
begintalknode 231;
	state = 230;
	nextstate = 232;
	condition = 1;
	question = "What is Camp East Alpha?";
	text1 = "_It is the creation camp just outside our east gate. It is where the field serviles and many of the defending creations are kept when not working or on patrol._";
	text2 = "_I look after the camp. Tend to the creations and keep them secure._";
	
begintalknode 232;
	state = 230;
	nextstate = 233;
	condition = gf(64,21) < 2;
	question = "Why do you need to see the Shapers?";
	text1 = "He shudders. _It is the camp. I ... I am an outsider. I am not used to creations. Commanding them. Seeing ... How they look at me._";
	text2 = "_I try not to speak to them, but I know that they do not like the camps. And they seem more ... insolent. I am not sure how to proceed._";

begintalknode 233;
	state = 230;
	nextstate = 231;
	condition = gf(100,21) > 0;
	question = "Are you feeling all right?";
	text1 = "_I have not been feeling well. There has been an ... illness. It just struck us. The Councilor's consort was lost. It is best not to speak of it._";
	
begintalknode 234;
	state = 231;
	nextstate = -1;
	condition = 1;
	question = "Do you know what caused the illness?";
	text1 = "_The Shapers have not said. And, considering how Sage Taygen has been acting, I won't be the one to ask._";
	
begintalknode 235;
	state = 230;
	nextstate = -1;
	condition = 1;
	question = "What sort of tea is that?";
	text1 = "_Bark. Cactus. Old nomad drink. Keeps me moving. The nomads are gone, but this foul, useful stuff remains._";
	
begintalknode 236;
	state = 232;
	nextstate = -1;
	condition = 1;
	question = "And how do the creations like being in the camps?";
	text1 = "_We have not had enough resources. It is hard to get enough food, enough firewood. And someone to care for the wounded and sick._";
	text2 = "_But this is a time of war. There are many sacrifices to be made, by all of us. Things will improve soon._";
	
begintalknode 237;
	state = 232;
	nextstate = -1;
	condition = 1;
	question = "Why were the camps built?";
	text1 = "_Two reasons. First, to keep the creations under watch, so that rebels can't come in and breed dissent._";
	text2 = "_Second, so that, when we see a creation that isn't shackled or in a camp, we know that it is a rogue._";
	
begintalknode 238;
	state = 233;
	nextstate = -1;
	condition = 1;
	question = "The creations don't like being in camps? Shocking.";
	text1 = "_Yes. I was told that they would obey the Shapers. Would not be difficult. It was that way at first. But, as time went on ... The way they look at me ... It unnerves me._";
	
begintalknode 239;
	state = 233;
	nextstate = 234;
	condition = 1;
	question = "What do you want the Shapers to do?";
	text1 = "_I hate asking them for help ... I'm an outsider ... But things have gotten worse lately. The serviles are angrier. Slower to obey. More whispering. I need someone to go there._";
	text2 = "_I need someone to investigate and see if something is making them rogue. If everything goes wrong, I don't want to be blamed!_";
	
begintalknode 240;
	state = 234;
	nextstate = -1;
	condition = gf(64,21) == 0;
	question = "Well, good luck with that.";
	text1 = "_Thank you. I ... I will go to see the Shaper soon. Soon ..._ He takes a sip of tea and does nothing even slightly resembling standing up.";
	action = END_TALK;
	
begintalknode 241;
	state = 234;
	nextstate = -1;
	condition = 1;
	question = "Perhaps I can go there and look around.";
	text1 = "_Can you? I knew, from looking at you, you're the sort who can understand creations. The camp is outside the gates to the east._";
	text2 = "_I don't know how to relate to creations. Maybe you do. Maybe you can tell if one has gone wrong._";
	code = 
		set_flag(64,21,1);
		toggle_quest(96,1);
	break;
	
begintalknode 242;
	state = 230;
	nextstate = -1;
	condition = gf(64,21) == 1 && gf(72,1) > 0;
	question = "I discovered a rebel servile in your camp.";
	text1 = "You tell Federa about Genta, the servile that was causing trouble. He looks shocked.";
	text2 = "_I can't believe I allowed such a thing! Oh, please don't tell the Shapers. I will be in terrible trouble._";
	text3 = "_At least the creature is dead. That is a great consolation._";
	text4 = "_I will send word back immediately. The creature will be dead soon. Serves it right for causing so much trouble for me!_";
	text5 = "_You deserve a reward for this. Go back to the camp, and you will find a box in my quarters. There are gems on the front. Press the red gem, then the yellow three times, then the green. Please take what you find inside._";
	code =
		if (gf(72,1) == 1)
			rs(3);
			else rs(4);
		sf(72,1,2);
		sf(64,21,2);
		toggle_quest(96,3);
		award_party_xp(200,28);
		inc_flag(100,0,3);
		sf(72,2,1);
	break;
	
begintalknode 243;
	state = 230;
	nextstate = -1;
	condition = gf(64,21) == 1 && gf(72,1) == 1;
	question = "I have inspected the serviles in your camp. I am sure that none of them are disloyal. (Lie.)";
	text1 = "_Really? That is good ... I suppose. But ... I do not think you are right. I will still need to see the Shaper. Still need to discuss the situation._";
	text2 = "_Thank you for at least trying to help me._";
	code =
		sf(64,21,2);
		toggle_quest(96,3);
		award_party_xp(100,28);
		inc_flag(100,0,-3);
	break;
	
begintalknode 244;
	state = 230;
	nextstate = -1;
	condition = gf(64,21) >= 2;
	question = "Why do you need to see the Shapers?";
	text1 = "_Even if I did not have these troubles, I would need to make regular reports. But ... it is so terrifying. Seeing Shapers._ He takes a sip of tea and shudders.";

	
// Denna

begintalknode 250;
	state = -1;
	nextstate = 250;
	condition = 1;
	question = "Name";
	text1 = "There is a woman in a leather jerkin sitting in the back of this room. She is cleaning and feeding her baton. When she sees you, she immediately slaps a cluster of thorns into it and holds it ready.";
	text2 = "She's more tan and slender than when you last saw her in Mera, but you recognize her instantly. It is Denna, the rogue who offered you information about your past and fled without delivering.";
	text3 = "She rolls her eyes. _Of course. As if I didn't have enough problems. You find me. And now there will be threats and drama. Even though you can't attack me here. And it would be a mistake even if you could._";
	text5 = "Denna sits with her baton across her lap. She is trying to look casual, but you know that she is ready to defend herself in an instant.";
	action = INTRO;

begintalknode 251;
	state = 250;
	nextstate = -1;
	condition = gf(64,16) == 0;
	question = "Why shouldn't I kill you?";
	text1 = "_Because then the guards will kill you. The Shapers don't allow such thuggery in their cities._";
	text2 = "_You are already very suspect. Unsecured creations. You know?_";
	code =
		if (gf(64,3) == 0)
			rs(2);
	break;
	
begintalknode 252;
	state = 250;
	nextstate = 251;
	condition = gf(64,16) == 0;
	question = "You cheated me!";
	text1 = "_Well, of course! You walking around Mera, all mopey and hangdog. I heard rumors of the mystery Shaper. I suspected I could get your help by dangling it in front of you. And I was right._";
	text2 = "_But I apologize, if that helps. And you gained, or regained, valuable lessons on the subject of trust._";

begintalknode 253;
	state = 251;
	nextstate = 250;
	condition = 1;
	question = "You don't know about my past.";
	text1 = "_Oh, honey. Of course not. And anyway, the future is all that matters. A lucky person has a chance to earn a generous reward from me._";
	text2 = "_But don't try to get me killed. That would be so ... ungracious._";
	action = SET_SDF 64 16 1;
	
begintalknode 254;
	state = 250;
	nextstate = 258;
	condition = gf(64,16) > 0;
	question = "Who do you work for?";
	text1 = "_Whoever pays me. Anyone who has something that needs doing and proper compensation available. I'm like you. An adventurer. I get things done. Keep the world spinning._";
	
begintalknode 255;
	state = 250;
	nextstate = 254;
	condition = gf(64,16) > 0 && gf(64,22) < 2 && gf(100,0) < 94;
	question = "You are hiring for another job?";
	text1 = "_I am. And I hear you have sympathy for the rebels, so I will give you a chance to help me._";
	text2 = "_There is a camp of creations to the southwest, in the White Wastes. It is called Camp Dranir. The unfortunates within recently rebelled. They hold the camp, but there are too many Shaper soldiers around for them to escape._";
	text3 = "_Go to the camp. Break in. Find their leader. Help them to get loose. I will pay you very well, and the rebels will be quite impressed._";
	code = 
		set_flag(64,22,1);
		toggle_quest(97,1);
	break;
	
begintalknode 256;
	state = 250;
	nextstate = -1;
	condition = gf(64,16) > 0 && gf(64,22) < 2 && gf(100,0) >= 94;
	question = "You are hiring for another job?";
	text1 = "_Not from you. And your sweet tongue won't convince me, either. You're a little close to the Shapers for my tastes._";
	
begintalknode 257;
	state = 258;
	nextstate = -1;
	condition = 1;
	question = "But you had me steal from the Shapers.";
	text1 = "_Perhaps for the rebels. Perhaps for another Shaper. Who knows? I certainly don't. Maybe I did, but I forgot._";
	
begintalknode 258;
	state = 258;
	nextstate = -1;
	condition = 1;
	question = "And you don't care about the morals of it?";
	text1 = "_Do you?_";
	text2 = "_Of course, there are some wretches I won't work for. Some factions it is suicidal to ally with. But I suspect I have far less blood on my hands than you._";
	
begintalknode 259;
	state = 258;
	nextstate = -1;
	condition = get_stat(20) > 4;
	question = "Could one of those jobs be to find out who I am?";
	text1 = "_No. I could waste an incredible amount of time failing to answer that question. We would both be better off if I just made something up._";
	text2 = "_But, if you truly care, I have heard that there is a sage living to the south. She is supposed to have great powers of sight. She might be able to help. And I'll tell you that for free._";
	
begintalknode 260;
	state = 254;
	nextstate = -1;
	condition = 1;
	question = "How do I know you will pay me?";
	text1 = "_My employer ensures it. I am not supposed to do anything to anger those who would help the rebels._";
	
begintalknode 261;
	state = 254;
	nextstate = -1;
	condition = 1;
	question = "Who is having you do this?";
	text1 = "_Who knows? Life is full of so many mysteries! Tantalizing, isn't it?_";
	
begintalknode 262;
	state = 254;
	nextstate = -1;
	condition = 1;
	question = "Where will they go after I free them?";
	text1 = "_Who knows? They will probably head for rebel lands. Probably never make it, of course. But they'll have a better chance than they do now._";
	
begintalknode 263;
	state = 250;
	nextstate = -1;
	condition = gf(64,22) == 1 && gf(68,1) > 0;
	question = "I have bad news. The rebels in the camp were destroyed.";
	text1 = "_Oh. I see. Well, I'm sure you had nothing to do with that. I'm sure that you weren't lured in by the wealth and power the Shapers give._";
	text2 = "_I am about to leave. Thank you for the information. Perhaps we will meet again. But, of course, I hope not._";
	code = 
		set_flag(64,22,2);
		toggle_quest(97,3);
	break;
	
begintalknode 264;
	state = 250;
	nextstate = -1;
	condition = gf(64,22) == 1 && gf(68,2) > 0 && gf(68,1) == 0;
	question = "I've been to the camp. The rebels are free.";
	text1 = "_I have already heard. The news spread quickly. And, as per my instructions, I have a reward._";
	text2 = "She takes something wrapped in furs out from under her chair and hands it to you. It is a short blade. At first, you thought that it was only a pommel. The blade is almost translucent.";
	text3 = "_I had money to give, as well, but it was all exhausted bribing my way into the Dera Reaches. I am sure you understand._";
	text4 = "_Now, I think, our accounts are settled. I will be leaving here very soon. Perhaps we will meet again, though, frankly, I hope not._";
	code = 
		set_flag(64,22,2);
		toggle_quest(97,3);
		award_party_xp(200,30);
		reward_give(84);
	break;
	
begintalknode 265;
	state = 250;
	nextstate = 256;
	condition = gf(64,16) == 2;
	question = "Actually, I spoke to the commander. I can kill you pretty much whenever I want.";
	text1 = "Denna shifts her weight forward on her chair, ready to defend herself. _Oh? And you think that such vindictiveness will make anything better? You would risk angering my powerful friends?_";
	text2 = "_Well? Are they to hear that one of us died in some foolish duel?_";
	
begintalknode 266;
	state = 256;
	nextstate = 250;
	condition = 1;
	question = "No. I just wanted you to know what I could have done.";
	text1 = "She slumps back in her chair. _Such games are a waste of time for people like us. I hope that display made you feel better._";
	action = SET_SDF 64 16 3;
	
begintalknode 267;
	state = 256;
	nextstate = -1;
	condition = 1;
	question = "Yes. You are a rebel and a criminal. And you cheated me. (Attack.)";
	text1 = "Denna springs to her feet. She doesn't like her odds, but she is trapped. Unsurprisingly, the guards do not answer her cry for help.";
	action = END_TALK;
	code =
		toggle_quest(97,4);
		set_attitude(59,10);
	break;
	
begintalknode 268;
	state = 250;
	nextstate = -1;
	condition = gf(64,16) > 0;
	question = "That is all I have to say.";
	text1 = "_Goodbye, then. And please. Try to cheer up._";
	action = END_TALK;



//

// MORE TAYGEN

begintalknode 275;
	state = 30;
	nextstate = -1;
	condition = gf(100,17) > 0 && gf(64,7) == 11;
	question = "I have bad news. Things went wrong. The Purity Agent was destroyed.";
	text1 = "Sage Taygen actually sits up. He starts to shake. _You ... You betrayed me! That can be the only explanation. We were so close, and now ... Now all is lost. Because of you! You!_";
	text2 = "_You are very lucky. I will let you live. But get out of my sight, traitor! You are banished from my lands._";
	action = END_TALK;
	code = 
		sf(100,4,3);
	break;		
